OnDgsScrollBarScrollPositionChange: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Thisdp moved page OnClientDgsDxScrollBarScrollPositionChange to OnDgsScrollBarScrollPositionChange) |
Revision as of 13:43, 20 January 2018
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("onDgsScrollBarScrollPositionChange",getRootElement(),OnScroll)
See Also
DGS events
General
- onDgsBlur
- onDgsCreate
- onDgsCursorTypeChange
- onDgsCursorStateChange
- onDgsDestroy
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsElementEnter
- onDgsElementLeave
- onDgsFocus
- onDgsKey
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTextChange
- onDgsWindowClose
- onDgsPropertyChange
Check Box
Combo Box
Drag'N Drop
Edit
Grid List
Menu
Selector
Mouse
- onDgsMousePreClick
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDoubleClickDown
- onDgsMouseDoubleClickUp
- onDgsMouseDown
- onDgsMouseHover
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMultiClick
- onDgsMouseMove
- onDgsMouseStay
- onDgsMouseUp
- onDgsMouseWheel
Radio Button
Switch Button
Tab
Animation
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaLoaded
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn
Color Picker
QRCode
Remote Image
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled