OnClientGUIChanged: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Client function}} | |||
__NOTOC__ | __NOTOC__ | ||
This event is | This event is fired when a memo or an editbox has changed (either by the user or by [[guiSetText]]). | ||
== | ==Parameters== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
element theElement | |||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''theElement''': The element which was changed. | |||
==Example== | ==Example== | ||
This example | This example creates an editbox and prints a message when it has changed | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
editBox = guiCreateEdit(0.3,0.1,0.4,0.1,"",true) | |||
addEventHandler("onClientGUIChanged", editBox, function(element) | |||
outputChatBox("The box now reads: " .. getGuiText(element)) | |||
end) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | |||
===GUI events=== | |||
{{GUI_events}} | |||
===Client event functions=== | |||
{{Client_event_functions}} |
Revision as of 15:50, 13 January 2008
This event is fired when a memo or an editbox has changed (either by the user or by guiSetText).
Parameters
element theElement
- theElement: The element which was changed.
Example
This example creates an editbox and prints a message when it has changed
editBox = guiCreateEdit(0.3,0.1,0.4,0.1,"",true) addEventHandler("onClientGUIChanged", editBox, function(element) outputChatBox("The box now reads: " .. getGuiText(element)) end)
See Also
GUI events
Input
GUI
- onClientGUIAccepted
- onClientGUIBlur
- onClientGUIChanged
- onClientGUIClick
- onClientGUIComboBoxAccepted
- onClientGUIDoubleClick
- onClientGUIFocus
- onClientGUIMouseDown
- onClientGUIMouseUp
- onClientGUIMove
- onClientGUIScroll
- onClientGUISize
- onClientGUITabSwitched
- onClientMouseEnter
- onClientMouseLeave
- onClientMouseMove
- onClientMouseWheel
Client event functions
- triggerLatentServerEvent
- triggerServerEvent
- Shared
- addEvent
- addEventHandler
- cancelEvent
- cancelLatentEvent
- getEventHandlers
- getLatentEventHandles
- getLatentEventStatus
- removeEventHandler
- triggerEvent
- wasEventCancelled