G.RestoreCursorPosition

From GMod Wiki

Revision as of 20:21, 11 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax RestoreCursorPosition( )
Where is this used?
Description:
Restores the position saved by RememberCursorPosition
Returns: nil
Part of Library: Global Functions
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.RestoreCursorPosition]G.RestoreCursorPosition [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionRemember the position when a panel is closed then restore it.
Used onNewerClient.png
Code
function CloseMyPanel( )
     RememberCursorPosition( )
     mypanel:SetVisible( false )
end
 
function OpenMyPanel( )
     mypanel:SetVisible( true )
     RestoreCursorPosition( )
end
 
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox