OnDgsEditAccepted: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is triggered when enter is pressed on a dgs edit box. ==Parameters== <syntaxhighlight lang="lua"> element editBox </syntaxhighlight> *...") |
|||
Line 17: | Line 17: | ||
DGS = exports.dgs | DGS = exports.dgs | ||
editBox = DGS:dgsCreateEdit ( 0.3, 0.1, 0.4, 0.1, "", true ) | editBox = DGS:dgsCreateEdit ( 0.3, 0.1, 0.4, 0.1, "", true ) | ||
addEventHandler( " | addEventHandler( "onDgsEditAccepted", editBox, | ||
function( theElement ) | function( theElement ) | ||
outputChatBox( DGS:dgsGetText( theElement ) ) | outputChatBox( DGS:dgsGetText( theElement ) ) |
Revision as of 11:54, 20 June 2018
This event is triggered when enter is pressed on a dgs edit box.
Parameters
element editBox
- editBox: the dgs edit box which had focus.
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
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