OnClientGUIScroll

From Multi Theft Auto: Wiki
Revision as of 12:54, 8 August 2008 by R3mp (talk | contribs) (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 ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 the scrollbar element that was scrolled.

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


Client event functions