LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel positioning

I can control a panel's size in the vi setup options, but where can I define
the screen position of the panel origin?

I want to position a panel (without tile bar, menus, or scroll bars) in the
upper left corner of the screen.
Thanks
Randall Miller
0 Kudos
Message 1 of 5
(2,828 Views)
Randall Miller wrote:

> I can control a panel's size in the vi setup options, but where can I define
> the screen position of the panel origin?
>
> I want to position a panel (without tile bar, menus, or scroll bars) in the
> upper left corner of the screen.
> Thanks
> Randall Miller

Randall,
You can use the Property node and the Property "Front Panel: Panel Bounds"
This is a cluster of Top, Left, Bottom and Right screen coordinates.
You can use this to control the size as well. These are global screen
coordinates (pixels)
that start from 0,0 in the upper left corner.
Kevin Kent
0 Kudos
Message 2 of 5
(2,828 Views)
I have answered part of my own question, the vi server can set the panel
position and size. Must this be done at run time?
Randall Miller
0 Kudos
Message 3 of 5
(2,828 Views)
> I have answered part of my own question, the vi server can set the panel
> position and size. Must this be done at run time?

This is the way to do it programmatically, the other way is to save the
VI in
the location that you want it to appear in. LV saves the location and size
of the window each time you save.

Greg McKaskle
0 Kudos
Message 4 of 5
(2,828 Views)
I set the vi options for no title bar, menus, or tool bar. When the vi is
opened, the panel is in the same position as when saved. But the area where the
title, menu, and tool bars were, in edit mode, now shows the window behind the
vi. If the vi does not have the title bar I have been unable to position it at
the upper left corner of the screen.
Randall Miller
0 Kudos
Message 5 of 5
(2,828 Views)