LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

running a full screen window

i am trying to run my vi within a 1024x768 window, with no scroll bars or tool bars or menu bars. sounds easy.. but if you try to get objects in your front panel to centre to the same place every time you run it, it is nearly impossible. does anyone know how to do it? i have attached my front panel, i want it to fill the monitor so all buttons and boxes are touching the edge of the screen when you run it.
0 Kudos
Message 1 of 9
(3,919 Views)
Uncheck the maintain proportions property, move all control to the edge of the window, set the window size property of the vi to "size the front panel to the current width and height of the entire screen" and alternatively also check the scale all objects checkbox...

OR do it all programatically by reading and setting window and control sizes and positions...
0 Kudos
Message 2 of 9
(3,919 Views)
thats ok untill you scroll around the screen or run the vi when you have the window maximised, which then messes it all up again. i don't think you can control the positions of decorations programatically can you?
0 Kudos
Message 3 of 9
(3,919 Views)
The scroll bars should off course be hidden, that you can do from the window appearence otpion under VI preferences.

Maximizing will not be a problem either, you can disable it the same place as you disable scrollbars...

Decorations can not be positioned programatically no, but you can make custom controls of them or use a transparent tab control with the decoration inside..and thus get control over their position indirectly.
0 Kudos
Message 4 of 9
(3,919 Views)
Decorations CAN be positioned programatically. A toy example is attached, version 6.0.2.

Keeping track of which decoration has which reference can, on occasion, be a bit challenging though.
0 Kudos
Message 5 of 9
(3,919 Views)
thanks for that, but it still dosen't solve my problem. getting the objects to stay where i want them isn't a problem, its getting the screen to go to the same coordinates every time you run it, no matter where you happen to have scrolled to in the screen when it is not running. so for example if you have objects in an area you want to see when the program is running, but then whilst it is not running you scroll around to a blank area of the screen and run it, you just get the blank area. the auto centre function does not correct this problem, if i have a screen that i have made to fit exactly in the viewable area, this feature (auto centre) does not nesercerally re-align it correctly so i end up with bits of my screen.
0 Kudos
Message 6 of 9
(3,919 Views)
"You scroll around to a blank area of the screen..."

What kind of scrolling are we talking about here? Normally if I do not have any programs open I cannot scroll around at all. Is the screen resolution set bigger than can be displayed so that you need to "scroll"/move the mouse around to see different parts of the desktop?

Could you take a screen caputre to show how the problem looks like?
0 Kudos
Message 7 of 9
(3,919 Views)
Here is an example of using the front_panel.origin property of a VI reference.

Exactly how to use it depends on your application...

It will be easier to obtain the effect you want if you are only going to be running it on one particular screen resolution... then you will not have to worry about moving stuff around programmatically once everything is in place, you will only need to set the front panel origin value.

you may want to wire this code before more code setting "front panel.open" to true after unchecking "show front panel when opened" and "show front panel when loaded".
0 Kudos
Message 8 of 9
(3,919 Views)
fantastic! just what i wanted. many thanks.
0 Kudos
Message 9 of 9
(3,919 Views)