VI class/Front Panel.Run-Time Position.Centered method

From LabVIEW Wiki
Jump to: navigation, search
VI Server Method Information
Method ID 447
Scope Basic Development Environment
Data Name FP.Run-Time Position.Centered
Short Name* FP.Run-Time Position.Centered
Long Name* Front Panel:Run-Time Position:Centered
* Displayed here in English. Short and Long names appear in the language of the LabVIEW IDE.
Owning Class ID 2
Owning Class Name VI Class
Return Data Type No return value
Invoke Node Front Panel:Run-Time Position:Centered
Available in Real-Time Operating SystemNo
Available in Run-Time EngineYes (Read/Write)
Available with control VIsYes
Available with global VIsYes
Available with polymorphic VIsYes
Available with strict type definitionsNo
Loads the block diagram into memoryNo
Loads the front panel into memoryNo
Must wait until user interface is idleNo
Need to authenticate before useNo
Remote access allowedYes
Settable when the VI is runningYes

Configures the referenced VI to center its front panel every time the VI runs. If the VI is running when you call this method, the change does not take effect until the next time the VI runs.

If you want to change the position of the VI while it is running, use the Front Panel Window:Window Bounds property instead.

This method is similar to selecting Centered from the Position pull-down menu on the Window Run-Time Position page of the VI Properties dialog box.

Parameters

Data type Name Required Description
I16 Monitor No Specifies 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.
Numeric Cluster Size No Indicates the size of the window.

Uses

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links