OnDgsEditSwitched
From Multi Theft Auto: Wiki
This event is triggered each time the user switch the dgs edit with the key "tab" and after the switch operation finishes.
Parameters
element Previous
- Previous: Previous edit
Source
The source of this event is the dgs edit switched to.
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(Previous) local text = DGS:dgsGetText(Previous) outputChatBox("Previous:"..text) end addEventHandler("onDgsEditSwitched", root, onSwitch)
See Also
DGS events
- onDgsArrowListValueChange
- onDgsBlur
- onDgsCheckBoxChange
- onDgsComboBoxStateChange
- onDgsComboBoxSelect
- onDgsCreate
- onDgsDestroy
- onDgsEditPreSwitch
- onDgsEditSwitched
- onDgsEditAccepted
- onDgsElementRender
- onDgsElementMove
- onDgsElementSize
- onDgsFocus
- onDgsGridListItemDoubleClick
- onDgsGridListSelect
- onDgsMouseClick
- onDgsMouseClickDown
- onDgsMouseClickUp
- onDgsMouseDrag
- onDgsMouseDoubleClick
- onDgsMouseDown
- onDgsMouseEnter
- onDgsMouseLeave
- onDgsMouseMove
- onDgsMouseUp
- onDgsMouseWheel
- onDgsRadioButtonChange
- onDgsPositionChange
- onDgsPreRender
- onDgsRender
- onDgsElementScroll
- onDgsSizeChange
- onDgsTabPanelTabSelect
- onDgsTabSelect
- onDgsTextChange
- onDgsWindowClose
Plugin
Media
- onDgsMediaPlay
- onDgsMediaPause
- onDgsMediaStop
- onDgsMediaDurationGet
- onDgsMediaTimeUpdate
- onDgsMediaBrowserReturn
Color Picker
Client event functions
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- triggerLatentServerEvent
- triggerServerEvent
- wasEventCancelled