OnDgsGridListItemDoubleClick
Jump to navigation
Jump to search
This event is activated each time the user double-clicks an item in the list of gridlist DGS.
Parameters
element theElement
- theElement: The dgs element that was double clicked.
Source
The source of this event is the DGS element that was double clicked.
Example
This example creates a list of grids and prints the items that were double-clicked:
DGS = exports.dgs gridlist = DGS:dgsDxCreateGridList(0.4, 0.4, 0.3, 0.3, true) column = DGS:dgsDxGridListAddColumn( gridlist, "Items", 0.6 ) for i = 0, 10 do local row = DGS:dgsDxGridListAddRow(gridlist) DGS:dgsDxGridListSetItemText(gridlist, row, column, i) end addEventHandler( "onClientDgsDxGridListItemDoubleClick", root, function(element) if element and (element ~= -1) then local text = DGS:dgsDxGridListGetItemText(gridlist , element, column) outputChatBox( "The number is "..text) end 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