Core Function ControlGetPos

From Sputnik Wiki
Jump to: navigation, search
ControlGetPos ( <title>, <text>, <controlID> ) 

Contents

Description

Retrieves the position and size of a control relative to it's window.

Parameters

Title

The title of the window to access.

Text

The text of the window to access.

controlID

The control to interact with.

Return Value

Success: Returns an array containing the control's position and size relative to it's window:.

$array[0] = X position 
$array[1] = Y position 
$array[2] = Width 
$array[3] = Height 

Failure: Returns 0.

Remarks

None.

Example

$pos = ControlGetPos("Untitled - Notepad", "", "Edit1");
println( "Window Stats: POS: $pos[0] $pos[1] $pos[2] $pos[3]\n" );
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox