LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Resize and Reposition Front Panel

This should be easy.  I know I've done it before, but my brain hasn't woken up yet this morning.

 

I'd like to use a "Minimize" push button on the front panel of a VI to make the front panel very small, so that the user sees only the "STOP" and "Minimize" buttons, and place it in the lower left-hand corner of the screen.  Then, if the user unclicks the Minimize button, I'd like the front panel to go back to its original size and position.

 

How do I do this?


Thanks,


FB

Forbes Black
Lapsed CLAD, LV 5 - LV 2022 (Yeah, I'm that old...)
0 Kudos
Message 1 of 2
(2,331 Views)

Take a look at this VI. It shows you how to use panels bounds of the Front Panel. To put the screen on the bottom or right, you can either query windows (if applicable) for screen size then figure out the height of the start menu, etc. Or you can perform a bit of trickery and use the invoke node on "ThisVi" to maximize the front panel then read the panel coords.

Charles Chickering
Architecture is art with rules.

...and the rules are more like guidelines
0 Kudos
Message 2 of 2
(2,324 Views)