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

Arrow List

Browser

Button

Check Box

Combo Box

Edit

Ellipse Detect Area

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Switch Button

Tab Panel

Window

Plugin

Media Browser

Rounded Rectangle

Color Picker

Blur Box

Effect 3D