LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Resizing

  I have a panel where I add several controls (LED, Text boxes, numeric boxes) real time.  I also want to have the panel resize to the screen resolution.  I have it setup so the controls that are actually placed on the panel resize, but all the controls I add at run-time do not reszie to the screen resolution.  Is there any way to fix that, or do I have to have all the items on the panel from the beginning.
 
Thanks for the help.
0 Kudos
Message 1 of 3
(3,017 Views)

Yes, you do have to have the controls in the panel from the beginning. The resolution adjustment setting only occurs once, when the panel is loaded.

One thing you could do is to create, in the ui editor, a second panel where you have all the controls that you want to add to the main panel later. You can enable the resolution adjustment in this panel as well, and load it when you load the main panel, but not display it. Then, whenever you want to create a new control in the main panel, simply copy it instead from the other panel, using the DuplicateCtrl function.

Luis

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

Interesting idea, I had not thought of coping it.  I will look into that.

Thanks.

0 Kudos
Message 3 of 3
(3,003 Views)