OnDgsPositionChange: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is triggered each time the position of a DGS element changed. ==Parameters== ''None'' ==Source== The event system#Event source|sourc...") |
m (Thisdp moved page OnClientDgsDxGUIPositionChange to OnDgsPositionChange) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
DGS = exports.dgs | DGS = exports.dgs | ||
local window = DGS: | local window = DGS:dgsCreateWindow(200,200,600,400,"Test Window",false) | ||
addEventHandler(" | addEventHandler("onDgsPositionChange",root,function() | ||
outputChatBox("You have moved :"..DGS:dgsGetType(source)) | outputChatBox("You have moved :"..DGS:dgsGetType(source)) | ||
end) | end) |
Latest revision as of 13:42, 20 January 2018
This event is triggered each time the position of a DGS element changed.
Parameters
None
Source
The source of this event is the DGS element whose position has changed.
Example
This example would output to the chatbox what the player moved.
DGS = exports.dgs local window = DGS:dgsCreateWindow(200,200,600,400,"Test Window",false) addEventHandler("onDgsPositionChange",root,function() outputChatBox("You have moved :"..DGS:dgsGetType(source)) end)
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