LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fenster minimieren

Kann man ein VI Fenster programmisch minimieren über ein Boolsches Element oder ähnlichem?
0 Kudos
Message 1 of 5
(3,381 Views)
Hi Simon,

there are property nodes for the frontpanel:
Open a reference to the vi, wire the reference to a property node, select property FP.State and select the appropriate input.
(Look at help window: 'Current state of the front panel window. Valid values include 0 (Invalid), 1 (Standard), 2 (Closed), 3 (Hidden), 4 (Minimized), and 5 (Maximized).').

Seems you are responsible for user interface design 🙂
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,377 Views)
wunderful, this works graet  Smiley Wink
 
The next question now is: Can I move the whole window with the move by picking it up on the top or somewhere, like bye the normal "windows"-windows.
 
I found someday, its longer ago, a example from LV, where you could move a "playing card" with the move. But i dont find it anymore 8(
 
And now i dont only want to move a simple card, i want to move the whole application window.
 
Can you also help me by this problem?
 
0 Kudos
Message 3 of 5
(3,369 Views)
Hello Simon,

yes you can, but it requires some more work:
You can detect mouse-clicks with the event structure. This way you can program your 'click-and-drag'-detection (MouseUp/Down-events).
To move your window you have to use the same property nodes as for minimizing: Frontpanel.Position/Bounds.

You surely will find some examples for this!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,363 Views)
Hi Simon,
this example impressed me too, it is "Dynamically Register for Events.vi".
Greets, Dave
Greets, Dave
0 Kudos
Message 5 of 5
(3,357 Views)