Core Function ControlGetPos
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> ControlGetPos ( <title>, <text>, <controlID> ) </pre> === Description === Retrieves the position and size of a control relative to it's window. === Parameters === ====...") |
m (1 revision) |
||
(2 intermediate revisions by one user not shown) | |||
Line 20: | Line 20: | ||
The control to interact with. | The control to interact with. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Return Value === | === Return Value === |
Latest revision as of 12:38, 14 June 2015
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" );