GuiGetPosition

From Multi Theft Auto: Wiki
Revision as of 15:06, 11 August 2007 by Talidan (talk | contribs)
Jump to navigation Jump to search

This function allows retrieval of a GUI element's current position on the screen

Syntax

float float guiGetPosition ( element guiElement, bool relative )

Required Arguments

  • guiElement: The gui element of which you wish to retrieve the position.
  • relative: A boolean representing whether the position should be relative to the element's parent, or absolute pixel position.

Returns

Returns two floats of the x and y positions of the position of the element on the screen, or false if the position could not be retrieved.

Example

This example does...

--This line does...
blabhalbalhb --abababa
--This line does this...
mooo

See Also

General functions

Browsers

Buttons

Checkboxes

Comboboxes

Edit Boxes

Gridlists

Memos

Progressbars

Radio Buttons

Scrollbars

Scrollpanes

Static Images

Tab Panels

Tabs

Text Labels

Windows

-- leave this unless you complete the function