10-12-2012 10:28 AM
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
10-12-2012 11:28 AM
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.