LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Maximized window

I have design my Labview application to fit on a 1024x800 screen with a maximized
window. The compiled application launchs with non-maximized window such that
the user has first to maximize it for an optimal display.
I would like this window maximization to be done automatically when the application
is launch.
How can I make my compiled application (.exe file) to be open automatically
with a maximized window ?
0 Kudos
Message 1 of 6
(3,559 Views)
David Benoit wrote in message <392bee8b@newsgroups.ni.com>...
>
>I have design my Labview application to fit on a 1024x800 screen with a
maximized
>window. The compiled application launchs with non-maximized window such
that
>the user has first to maximize it for an optimal display.
>I would like this window maximization to be done automatically when the
application
>is launch.
>How can I make my compiled application (.exe file) to be open automatically
>with a maximized window ?
>

Doesn't "VI setup" -> "Window options" -> "Size to screen" do the trick ?

RB.
0 Kudos
Message 2 of 6
(3,559 Views)
Thanks for comment.
Already tried this.
It does not behave exactly as maximize.
The effect of 'size to screen' is indeed to rescale the screen at the maximum
but you still have two-pixel-wide borders that you don't have with a true
maximization. This seems cosmetic but these borders matter for my application,
they hide part of control close to the border.
Anything else ...
0 Kudos
Message 3 of 6
(3,559 Views)
> Already tried this.
> It does not behave exactly as maximize.
> The effect of 'size to screen' is indeed to rescale the screen at the maximum
> but you still have two-pixel-wide borders that you don't have with a true
> maximization. This seems cosmetic but these borders matter for my application,
> they hide part of control close to the border.
> Anything else ...

If these other things don't work, try using the VI Server. You can make
quite a few changes to the window. You can read the monitor/monitors and
determine what you like the window size to be.

Greg McKaskle
0 Kudos
Message 5 of 6
(3,559 Views)
Remco Breen wrote:

> David Benoit wrote in message <392bee8b@newsgroups.ni.com>...
> >
> >I have design my Labview application to fit on a 1024x800 screen with a
> maximized
> >window. The compiled application launchs with non-maximized window such
> that
> >the user has first to maximize it for an optimal display.
> >I would like this window maximization to be done automatically when the
> application
> >is launch.
> >How can I make my compiled application (.exe file) to be open automatically
> >with a maximized window ?
> >
>
> Doesn't "VI setup" -> "Window options" -> "Size to screen" do the trick ?
>
> RB.

Thanks for comment.
Already tried this.
It does not behave exactly as maximize.
The effect of 'size to screen' is indeed to rescale the screen at t
he maximum
but you still have two-pixel-wide borders that you don't have with a true
maximization. This seems cosmetic but these borders matter for my application,
they hide part of control close to the border.
Anything else ...

--

Benoit DAVID

Université Catholique de Louvain
Centre for Systems Engineering
and Applied Mechanics (CESAME)
4 avenue Georges Lemaître
B-1348 Louvain-la-Neuve
Belgium

Tel (direct): +32 10 478030
Tel (secr.): +32 10 472597
Fax: +32 10 472180

E-mail: david@auto.ucl.ac.be
---------------------------------
0 Kudos
Message 4 of 6
(3,559 Views)
Here is a solution I got via Email from a romanian. It does not really do
the same as 'maximize the window' but allows to fix the position of the front
panel on the actual screen. It can be used to make the front panel filling
the entire sreen area without any border which is even better than maximize
for me.

here is the Email

try this:
- open a VI Reference (Open VI Reference in Application Control pallete)
and put a Current VI's Path at vi path input;
- wire a Property Node and select FrontPanel.WinBounds;
- create a constant on Property Node and set the necesary resolution for
the window;
0 Kudos
Message 6 of 6
(3,559 Views)