OnDgsEditAccepted
From Multi Theft Auto: Wiki
This event is triggered when enter is pressed on a dgs edit box.
Parameters
element editBox, bool isAutoCompleteConfirmed
- editBox: the dgs edit box which had focus.
- isAutoCompleteConfirmed: A bool of whether the accept operation is triggered by auto completion confirm.
Source
The source of this event is the dgs edit box which enter was pressed on.
Example
This example creates a dgs edit box and prints a message when enter is pressed.
DGS = exports.dgs editBox = DGS:dgsCreateEdit ( 0.3, 0.1, 0.4, 0.1, "", true ) addEventHandler( "onDgsEditAccepted", editBox, function( theElement ) outputChatBox( DGS:dgsGetText( theElement ) ) end )
See Also
- 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