OnDgsTextChange: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Client event}} __NOTOC__ This event is triggered when a dgs element text has changed (either by the user or by dgsSetText). ==Parameters== <syntaxhighlight lang="lua"...") |
|||
Line 19: | Line 19: | ||
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("onDgsTextChanged", editBox, function() | addEventHandler("onDgsTextChanged", editBox, function() | ||
outputChatBox("The box now reads: " .. DGS: | outputChatBox("The box now reads: " .. DGS:guiGetText(source)) | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 03:24, 24 March 2018
This event is triggered when a dgs element text has changed (either by the user or by dgsSetText).
Parameters
element theElement
- theText: The text.
Source
The source of this event is the element which was changed.
Example
This example creates a dgs editbox and prints a message when it has changed
DGS = exports.dgs editBox = DGS:dgsCreateEdit(0.3,0.1,0.4,0.1,"",true) addEventHandler("onDgsTextChanged", editBox, function() outputChatBox("The box now reads: " .. DGS:guiGetText(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