OnDgsTabPanelTabSelect
From Multi Theft Auto: Wiki
This event is triggered each time the tab selection of the tab panel has been changed.
Parameters
- CurrentItemID: The id of current selected tab.
- PreviousItemID: The id of previous selected tab.
- CurrentItemElement: The dgs-dxtab element of current selected tab.
- PreviousItemElement: The dgs-dxtab element of previous selected tab.
Source
The source of this event is the dgs tab panel whose tab selection has just been selected.
Example
DGS = exports.dgs tabpanel = DGS:dgsCreateTabPanel(400,200,400,400,false) tab1 = DGS:dgsCreateTab("DGS",tabpanel) tab2 = DGS:dgsCreateTab("Tab",tabpanel) gdlt2 = DGS:dgsCreateButton(10,10,100,120,"test",false,tab1,tocolor(255,255,255,255)) addEventHandler("onDgsTabPanelTabSelect", tabpanel, function ( new, old ) outputChatBox("The tab of tab panel has been changed. ( Current: "..new.."; Previous: "..old.." )") 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