02-10-2011 10:07 AM
Is it possible to either attach 2 labels to a control or place the label behind the control?
I am trying to achieve a display which contains leds with 2 text messages each
"led 1" [O] "data value"
I can do this with an additional text box but this requires 2 lines every time I want to set the ctrl attributes for the item, with lots of controls to set this is going to take a lot of code.
I have tried with a label where the text is spread out behind the led control but unless the label is transparrent the control is hidden, with transparent you then lose the 3d appearance of the label. Setting the z plane does not affect the label.
Best Regards
John
02-14-2011 02:28 AM
Hi John ,
I think the best option here is simple C programing ,
Write a function which gets the number of the led and the msg and display it to the led you want....
some thing like ChangeLedVars( int ledNumber, char textMsg[]);
the panel is the same panel and the controls are the same so you dont have any problem changing them
Hope it helps...
02-14-2011 03:05 AM
If you haven't too many states for the LED you could use a picture ring with an appropriate set of image/value pairs. Take a look to the attached example.