FPRunTimePosRunCentered Method

LabView ActiveX Properties and Methods

FPRunTimePosRunCentered Method

Installed With: Base Package

Class: VI Methods (ActiveX)

Sets a VI to center its front panel every time the VI runs.

For single-pane front panels, minimum size refers to the content area of that pane, not including the scroll bars. For multi-pane front panels, minimum size refers to the entire front panel, including any visible scroll bars.

Syntax

object.FPRunTimePosRunCentered([monitor], [size])

Parameters

NameTypeDescription
monitorshortSpecifies the monitor on which the front panel window appears, if you have multiple monitors. The value 0 is the primary monitor and is the default value. If you specify a value other than 0, the VI runs on that monitor. If you specify a monitor number greater than the number of monitors on the system, or if you specify a negative number, LabVIEW returns an error. The monitor number corresponds to the video card you plug the monitor in to.
size16-bit integerA cluster of height and width pairs that indicate the size in pixels of the front panel.

Return Value

none