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

Browser

Button

Check Box

Combo Box

Custom Renderer

Edit

Detect Area

Grid List

Image

Memo

Label

Progress Bar

Radio Button

Scroll Bar

Scroll Pane

Selector

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