system.nav.centerWindow
This function is used in Python Scripting.
Descriptionβ
Given a window path, or a reference to a window itself, it will center the window. The window should be floating an non-maximized. If the window can't be found, this function will do nothing.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntax #1 (String param)β
system.nav.centerWindow(windowPath)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | windowPath | The path of the window to center. |
Returnsβ
Nothing
Scopeβ
Vision Client
Syntax #2 (FPMIWindow param)β
system.nav.centerWindow(window)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| FPMIWindow | window | A reference to the window to center. |
Returnsβ
Nothing
Scopeβ
Vision Client
Code Examplesβ
Example #1
# This example centers the window named 'Overview'.
system.nav.centerWindow('Overview')