LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

tabbing order for decorations

hello,
I want to programatically resize all the controls, indicators and decorations on the front panel.
 
I am getting the references of all the controls and indicators and able to resize them, as each n every control and indicator has a tabbing order set to it.
I am also getting the references of all the decoration used on the front panel but not able to get the order.
 
how to get the order for these decorations?
0 Kudos
Message 1 of 3
(3,213 Views)
Pritam,
 
Controls that are always indicators, like decorations and text messages, do not appear in the tab order. But if your goal is to iterate through all the controls programmatically, you don't have to rely on the tab order. You can use the ATTR_PANEL_FIRST_CTRL panel attribute, and the ATTR_NEXT_CONTROL control attribute, to iterate through all controls on the panel, regardless of tab order.
 
Luis
0 Kudos
Message 2 of 3
(3,193 Views)
Hi Pritam.
 
If your aim is to keep all controls visible when your panel is resized, the easy way to do it is via the panel attributes:
ATTR_SCALE_CONTENTS_ON_RESIZE
ATTR_MIN_HEIGHT_FOR_SCALING
ATTR_MIN_WIDTH_FOR_SCALING
These can be set either programmatically or in the UIR editor via Edit Panel / Other Attributes.
 
Regards,
Colin.
 
0 Kudos
Message 3 of 3
(3,179 Views)