09-28-2016 05:18 PM
Hi, I am trying to programmatically update a 2D Picture Control to the size of the full monitor screen. Is there a way to do this?
I know you can maximize the front panel to the fulll screen but I have been unable to develop a method that allows me to do this for a 2D Picture Control.
Thanks for you help!
Solved! Go to Solution.
09-28-2016 06:51 PM
Hi increase the panel to the full size of the monitor and then use an invoke node \ fit control to pane.
Good luck
09-28-2016 08:06 PM
You can fit the 2D picture control to the front panel of your VI by selecting (using right-click) "Fit control to panel" and then "Scale Object with pane". When you will maximize the VI, the 2D picture controll will fill the screen.
09-29-2016 09:16 AM
That works great. If I wanted to put the 2D Picture Control back to its original size after using "Fit Control To Pane" how would I go about doing that? Would I just use a property node for the controls position and bounds?
Thanks!
09-29-2016 10:20 AM
I don't think there is a feature letting you put the control back to its original size after the "Fit Control to Pane" besides the undo (ctrl-Z). As you said, you can record the size and position using property nodes and set it back to its original size programmatically. If the "Scale Object with Pane" is selected, the control will size along the VI front panel when you maximize and un-maximize.