OnDgsGridListSelect
From Multi Theft Auto: Wiki
This event is triggered each time the item selection of grid list has been changed.
Parameters
- CurrentItem: The value of current selected row.
- CurrentItemColumn: The value of current selected column.
- PreviousItem: The value of previous selected row.
- PreviousItemColumn: The value of previous selected column.
Source
The source of this event is the DGS grid list whose item selection has just been changed.
Example
DGS = exports.dgs local list = DGS:dgsCreateGridList (346, 163, 433, 403, false ) --Create the grid list element local column = DGS:dgsGridListAddColumn( list, "test", 0.5 ) --Create a column in the list for i=1,10 do local row = DGS:dgsGridListAddRow ( list ) DGS:dgsGridListSetItemText ( list, row, column, tostring(i) ) end addEventHandler("onDgsGridListSelect", list, function ( current, currentcolumn, previous, previouscolumn ) outputChatBox("The item of list has been changed. ( Current: "..current.."; Previous: "..previous.." )") end)
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