Panel.CursorPos

From GMod Wiki

Jump to: navigation, search
Function
Syntax Panel:CursorPos( )
Description:
Returns the position of the cursor local to the Panel.
Returns: Integer x, Integer y
In Object: Panel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Panel.CursorPos]Panel.CursorPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrints where the cursor is to the console.
Used onNewerClient.png
Code
local x, y = Panel:CursorPos();
print("Cursor Pos: ".. x .." ".. y );
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox