OnClientGUIAccepted: Difference between revisions
Jump to navigation
Jump to search
(→Source) |
m (→See Also) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
element editBox | element editBox | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* '''editBox''': | * '''editBox''': the [[Element/GUI/Edit_field|editbox]] which had focus. | ||
==Source== | ==Source== | ||
Line 22: | Line 22: | ||
) | ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[pl:onClientGUIAccepted]] | |||
==See Also== | ==See Also== | ||
{{GUI_events}} | {{GUI_events}} | ||
===Client event functions=== | ===Client event functions=== | ||
{{Client_event_functions}} | {{Client_event_functions}} |
Latest revision as of 14:29, 20 May 2018
This event is triggered when enter is pressed on an editbox.
Parameters
element editBox
- editBox: the editbox which had focus.
Source
The source of this event is the editbox which enter was pressed on.
Example
This example creates an editbox and prints a message when enter is pressed.
editBox = guiCreateEdit ( 0.3, 0.1, 0.4, 0.1, "", true ) addEventHandler( "onClientGUIAccepted", editBox, function( theElement ) outputChatBox( guiGetText( theElement ) ) end )
See Also
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