OnDgsEditPreSwitch
Jump to navigation
Jump to search
This event is triggered each time the user switch the dgs edit with the key "tab" and before the switch operation finishes.
Parameters
None
Source
The source of this event is the dgs edit.
Example
DGS = exports.dgs edit = DGS:dgsCreateEdit(0.3,0.3,0.2,0.05,"1",true) edit2 = DGS:dgsCreateEdit(0.3,0.4,0.2,0.05,"2",true) edit3 = DGS:dgsCreateEdit(0.3,0.5,0.2,0.05,"3",true) edit4 = DGS:dgsCreateEdit(0.3,0.6,0.2,0.05,"4",true) function onSwitch() cancelEvent() -- Now switch disabled end addEventHandler("onDgsEditPreSwitch", root, onSwitch)
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