LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Label disapears at run time

HI,
 
I'm using a RadioGroup control.  The lable is seen on panel in the design mode, but when I run my project the label disappear???!
 
I tried to move the label to another area and it didn't help.  I tried to write a control attribute where I define a new label text...still I can't see it.
Any suggestions?
 
Thanks
0 Kudos
Message 1 of 3
(3,145 Views)
I have no such experience, but the normal way of addressing such problems is: can you replicate the same behaviour in a simple project that has only this control or a few more? If so the problem is probably related to the control itself and you can post here that project for someone to look at it. If not, there may be some instruction in your project whose effect is to hide the label: you may want to add breakpoints throughout your project between LoadPanel and DisplayPanel and see if the lable is never visible or is hided in some moment.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,123 Views)
Hello

I'm assuming you are referring to the label on the top of the control and not the item labels.

This is expected behavior. You can see this in the code for the radiogroup function Radio_ConvertFromTree(). The code is included with CVI under cvi\toolslib\custctrl\radiogroup.c

The particular line of interest is

 errChk(SetCtrlAttribute (panel, tree, ATTR_LABEL_TOP, -32000));

Since the radio control is just a tree control, you can set the label to your designed location in your own code using SetCtrlAttribute () instead of modifying the radiogroup.c file to avoid problems when upgrading CVI.

Bilal Durrani
NI
Message 3 of 3
(3,103 Views)