LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lock front panel with has titel bar?

How can I lock a front panel that has a title bar?
 
I do not want that the user
- close the window --> ok, vi-property
- resize the Window --> ok, vi-property
- minimize the window --> ok, vi-property
 
but:
           I also want, that the user can't move the window using the titel bar
 
I do not want to poll permanently the windows-position.
 
Any idea?
0 Kudos
Message 1 of 4
(3,076 Views)
I don't understand why you want the window to even have a title bar, since it should not be used for anything.
 
You could just hide the title bar, then add a lookalike graphics to make a dummy title bar if desired.
 
 
(Personally, I would typically not restrict these settings unless there are very good reasons (e.g. safety). People have their own style using computers and imposing such limitations can be frustrating to the user.)
0 Kudos
Message 2 of 4
(3,074 Views)
Hello
 
Thanks for your response.
The reason for the title bar is, that the application should look like a "windows-like" programm and display (dynamic changing) information like the filename in MS Word.
The front panel will be fill the entire screen (size is dependig on the resolution) and contain some floating front panel of sub-vis on it.The user does not see, that there are other frontpanels.  
So if the user moves the "main-frontpanel" the position of the floating panels will not be longer relative correct to the main front panel.
 
I know, that I can hide the front panel, but I dont like to programm a special graphic to make a "dummy" titel bar. Even this graphic does not change, if the user changes his windows-appearance. Because the user(customer) is not technican, but works on "design" the appearance of the GUi is important.
 
0 Kudos
Message 3 of 4
(3,066 Views)
Hello zav,

via vi->property node you can also set the window size. So switch of closing/resizing/minimizing in the vi properties dialog and do the rest in a small while loop parallel to your main program (permanently set the window size to the size of the screen).

Attached is a picture of a sub-vi calculating the window position regarding to screen size. The output is wired to a property node 'Frontpanel Window.Window Bounds'. Hope this helps...



Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(3,058 Views)