取消
显示结果 
搜索替代 
您的意思是: 

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 2023 (Yeah, I'm that old...)
0 项奖励
1 条消息(共 2 条)
2,654 次查看

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 项奖励
2 条消息(共 2 条)
2,647 次查看