NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

statusbar panes labview

A co-worker is doing this (attached) in CVI.  How can I access the same properties/methods in LabVIEW?
 
// get the status bar panes so we can connect them to various captions
tsErrChk( TSUI_StatusBarGetPanes(gMainWindow.statusBar, &errorInfo, &panes));

tsErrChk( TSUI_StatusBarPanesGetItem(panes, &errorInfo, CA_VariantLong(7), &paneReportLocation));
tsErrChk( TSUI_StatusBarPaneGetCaption (paneReportLocation, &errorInfo, &psReportPaneStr));
 
The code, essentially, is getting a the report file path and name from the status bar.  In this status bar, the path is found in the seventh pane.
0 Kudos
Message 1 of 2
(3,287 Views)
You need to get the reference to your StatusBar control.  Use a property node to get the Panes property.  (You can split the CVI functions up into TSUI_[ControlName][Get/Set][PropertyName] or TSUI_[ControlName][MethodName]).  So you can see for this case we have TSUI_    StatusBar     Get       Panes.

For the next line, you use a Property Node to get the Item Property on the resulting StatusBarPanes object that came from the last property object.
For the last line, you take the StatusBarPane object from the last line, and get the Caption property.

Allen P.
NI
0 Kudos
Message 2 of 2
(3,274 Views)