DgsTabPanelMoveTab

From Multi Theft Auto: Wiki

This function moves the tab to a specific index.

Syntax

bool dgsTabPanelMoveTab ( element tabpanel, int from, int to )

Required Arguments

  • tabpanel: The tab panel you want to operate.
  • from: The index of the tab you want to move.
  • to: The index you want to move to.

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

Custom Renderer

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

Nine Slice