DgsTabPanelGetTabID

From Multi Theft Auto: Wiki

This function gets the index of the tab.

Syntax

bool dgsTabPanelGetTabID ( element tab )

Required Arguments

  • tab: The tab you want to get id from.

Returns

Returns true if succeed, false otherwise.

Example

DGS = exports.dgs
matab = DGS:dgsCreateTabPanel (0.22, 0.19, 0.56, 0.63,true)
tab1 = DGS:dgsCreateTab("Main",matab)
tab2 = DGS:dgsCreateTab("Rules",matab)
tab3 = DGS:dgsCreateTab("FAQ",matab)
tab4 = DGS:dgsCreateTab("About Us",matab)
local id = DGS:dgsTabPanelGetTabID(tab2)
DGS:dgsTabPanelMoveTab(matab,id,4)

See Also

Multi Language Supports

Animation

3D Interface

3D Text

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Blur Box

Color Picker

Canvas

Effect 3D

Media Browser

Mask

Nine Slice

Object Preview Supports

QRCode

Remote Image

Rounded Rectangle