LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I disable the windows maximize, minimize and close icons?

This may seem odd but it is really quite practical for our problem.
 
I want to be able to launch my LabView application automatically when the computer is switched on, maximize the window and then not allow the window to be minimized or closed (except perhaps under password control). The reason for this (which may help you understand the problem) is that the software is to be used in an environment where the computer needs to be protected from being mis-used. Essentially I want the computer to become a terminal for using the one application ONLY (unless say a password is given and then revert back to normal Windows Xp environment).
 
Thinking about am I really asking, how do we send windows messages to LabVIEW apps?
 
Regards
 
Kevin
0 Kudos
Message 1 of 5
(4,507 Views)
Hi,
 
To launch the application when the PC goes on, you can put a shortcut to it in the startup menu, keep in mind that this only happens when you lo~g in the PC.
To run it even if nobody has logged in yet, you have to create a windows service, there's a tutorial for that here: http://zone.ni.com/devzone/conceptd.nsf/webmain/a9b2fa96b851394586256b26006ecb98.
 
About the rest of your doubts maximize, remove user hability to maximiza, minimize and close the window, they are all available in the Vi properties. Go to File and select "Vi properties" or right  click on the icon in the top right corner and select Vi properties, there you can choose the apearence of your program, the way it runs, and so on, mainly in the windows appearence and window size tabs.
 
Hope this helps,
Paulo
Message 2 of 5
(4,504 Views)
Thanks Paulo,
 
I was aware that to launch the application I would have to delve into services, it is really the maximizing etc I was unsure about.
 
I have taken a quick look at the Vi properties and it certainly looks like it does quite a few things that I want. However I cannot see how I could do it programmatically. For instance if I set up to have no minimize or close buttons can I, say, put the minimize on one of my own application buttons and password protect it? This may not be actually necessary on my app because I could password protect the STOP button which would do something similar I think.
 
Regards
 
Kevin
 
 
 
0 Kudos
Message 3 of 5
(4,499 Views)

You can change most of your application properties programmatically.

Get a reference to it, and then with property nodes you can changes them.

Look at annex.

Paulo

0 Kudos
Message 4 of 5
(4,492 Views)
Paulo,
 
Thanks again.
 
I think the really important thing that you have shown me is how to get a reference to the vi and then set properties in it. I have done this with controls etc but never knew how to do it with a vi. I think this should do it, particularly if I can put in a direct password protection.
 
regards
 
Kevin
0 Kudos
Message 5 of 5
(4,488 Views)