OnClientGUIScroll: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Client event}} __NOTOC__ This event is fired when a GUI scrollbar is scrolled. ==Parameters== <syntaxhighlight lang="lua"> element Scrolled </syntaxhighlight> * '''Scrolled''': The scrollbar element that was ...) |
No edit summary |
||
Line 10: | Line 10: | ||
==Source== | ==Source== | ||
The [[event system#Event source|source]] of this event is | The [[event system#Event source|source]] of this event is root element. | ||
==Example== | ==Example== |
Revision as of 21:06, 5 July 2010
This event is fired when a GUI scrollbar is scrolled.
Parameters
element Scrolled
- Scrolled: The scrollbar element that was scrolled
Source
The source of this event is root element.
Example
This example outputs a message with the new scroll position when a scrollbar is scrolled.
function OnScroll(Scrolled) outputChatBox("The new scroll position is "..guiScrollBarGetScrollPosition(Scrolled)) end addEventHandler("onClientGUIScroll",getRootElement(),OnScroll)
See Also
GUI events
Input
GUI
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIFocus
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled