OnDgsScrollBarScrollPositionChange

From Multi Theft Auto: Wiki
Revision as of 07:36, 2 December 2017 by Thisdp (talk | contribs) (Created page with "{{Client event}} __NOTOC__ This event is fired when a DGS scrollbar is scrolled ( including scroll bars of scrollpane, gridlist and combobox ). ==Parameters== <syntaxhighli...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This event is fired when a DGS scrollbar is scrolled ( including scroll bars of scrollpane, gridlist and combobox ).

Parameters

element Scrolled
  • ScrollTo: The value of current scroll position
  • ScrollFrom: The value of previous scroll position

Source

The source of this event is the dgs scrollbar element that got scrolled.

Example

This example outputs a message with the new scroll position and old scroll position when a scrollbar is scrolled.

DGS = exports.dgs
function OnScroll(new,old)
	outputChatBox("The new scroll position is "..new.." ( was:"..old.." )")
end
addEventHandler("onClientDgsDxScrollBarScrollPositionChange",getRootElement(),OnScroll)

See Also

DGS events

General

Check Box

Combo Box

Drag'N Drop

Edit

Grid List

Menu

Selector

Mouse

Radio Button

Switch Button

Tab

Animation

Plugin

Media

Color Picker

QRCode

Remote Image

Client event functions

Shared