OnDgsComboBoxSelect
From Multi Theft Auto: Wiki
This event is fired when the item of a DGS combo box is selected.
Parameters
integer current, integer previous
- current: The item id that got selected.
- previous: The item id that last selected.
Source
The source of this event is the combo box element that got its item selected.
Example
This example outputs a message with the selected item when an item is selected.
DGS = exports.dgs comboBox = DGS:dgsCreateComboBox(500,400,200,30,false) for i=1,20 do DGS:dgsComboBoxAddItem(comboBox ,i) end function onSelected(current,previous) outputChatBox("Last Selection:"..(previous or "None")..";Current Selection:"..(current or "None")) end addEventHandler("onDgsComboBoxSelect",getRootElement(),onSelected)
See Also
DGS events
- 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