Front Panel Window:Window Bounds Property

LabView Local Project Settings

Front Panel Window:Window Bounds Property

Short Name: FP.WinBounds

Installed With: Base Package

Class: VI Properties

The four elements in the cluster are the top, left, bottom, and right values of the front panel window, which includes the interior region, scroll bars, title bar, menu bar, and toolbar. They are in global screen coordinates, that is, the numbers refer to coordinates within a computer monitor's screen (rather than an open window).

You can set this property only for VIs with open front panels. If you do not want the VI for which you want to set this property to appear to users, use the Hidden state of the Front Panel Window:State Property to hide the front panel of the VI.

When you read this property, LabVIEW returns the window bounds of the VI. If the front panel of the VI is not open, LabVIEW returns the window bounds of the VI in the position it was last saved.

If you load the VI in a subpanel control, this property is read only.

Elements

Name Description
Left The horizontal coordinate of the left edge of the front panel window in global screen coordinates.
Top The vertical coordinate of the top edge of the front panel window in global screen coordinates.
Right The horizontal coordinate of the right edge of the front panel window in global screen coordinates.
Bottom The vertical coordinate of the bottom edge of the front panel window in global screen coordinates.

Example

Remarks

The following table lists the characteristics of this property.

Available in Run-Time Engine and Real-Time Operating SystemYes
PermissionsRead/Write
Settable when the VI is runningYes
Loads the front panel into memoryYes
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access disallowedNo
Must wait until user interface is idleNo
Available with control VIsYes
Available with global VIsYes
Available with strict type definitionsNo
Available with polymorphic VIsNo

Example

Refer to the VI Server - Changing Another VI's Properties VI in the labview\examples\viserver\uicntrl.llb for an example of using the Front Panel Window:Window Bounds property.

 Open example  Browse related examples