LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with use of TS_PropertyExist()

Hello,
 
This code return me an error on TS_PropertyExist(). Why ? (GEN_MainWindow.panel is the handle of the panel MAINPANEL and there is a statusbar UI control(STATUSBAR2) in this panel.
 
 int error = 0;
 CAObjHandle statusbar2;
 
 VBOOL exist= 0;
 //TEST
 // status bar
 errChk( GetObjHandleFromActiveXCtrl(GEN_MainWindow.panel, MAINPANEL_STATUSBAR2, &statusbar2));
 tsErrChk( TS_PropertyExists (statusbar2, NULL, "Font", 0, &exist));
0 Kudos
Message 1 of 2
(3,156 Views)
Hi
Can you be a little bit more specific.
You are building an operator interface in CVI i suppose Smiley Very Happy
The TS_propertyExists allows us to check with a lookup string if a property exists as a local variable, a step and so on...

So i am not sure you can  do tsErrChk( TS_PropertyExists (statusbar2, NULL, "Font", 0, &exist));
Indeed what is your goal? The Font is an object that contains properties about the control, i have difficulties to see what you want to test??

Thanks
Kamal
NIF



 

 
0 Kudos
Message 2 of 2
(3,135 Views)