DgsTabPanelGetTabFromID

From Multi Theft Auto: Wiki

This function gets tab by the specific tab panel and tab id (start from 1).

Syntax

bool dgsTabPanelGetTabFromID ( element tabpanel, int ID )

Required Arguments

  • tabpanel: The tab panel you want to get tab from.
  • ID: The index of the tab.

Returns

Returns a dgs-dxtab if succeed, false otherwise.

Example

DGS = exports.dgs
matab = DGS:dgsCreateTabPanel (0.22, 0.19, 0.56, 0.63,true)
DGS:dgsCreateTab("Main",matab)
DGS:dgsCreateTab("Rules",matab)
DGS:dgsCreateTab("FAQ",matab)
DGS:dgsCreateTab("About Us",matab)
local tab = DGS:dgsTabPanelGetTabFromID(matab,2)
DGS:dgsDeleteTab(tab)

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