Torque 3D - Script Manual: GuiTabBookCtrl Class Reference

TorqueScript

Main   Class List   Namespace List   Online

GuiTabBookCtrl Class Reference
[Container Controls]

A container. More...

Inheritance diagram for GuiTabBookCtrl:

List of all members.

Public Member Functions

void addPage (string title="")
 Add a new tab page to the control.
int getSelectedPage ()
 Get the index of the currently selected tab page.
void selectPage (int index)
 Set the selected tab page.
Callbacks

void onTabRightClick (String text, int index)
 Called when the user right-clicks on a tab page header.
void onTabSelected (String text, int index)
 Called when a new tab page is selected.

Public Attributes

TabBook

bool allowReorder
 Whether reordering tabs with the mouse is allowed.
int defaultPage
 Index of page to select on first onWake() call (-1 to disable).
int frontTabPadding
 X offset of first tab page header.
int minTabWidth
 Minimum width allocated to a tab page header.
int selectedPage
 Index of currently selected page.
int tabHeight
 Height of tab page headers.
int tabMargin
 Spacing to put between individual tab page headers.
GuiTabPosition tabPosition
 Where to place the tab page headers.

Detailed Description

A container.

Example:
// Create 
Note:
Only GuiTabPageCtrls must be added to GuiTabBookCtrls. If an object of a different class is added to the control, it will be reassigned to either the active page or the tab book's parent.
See also:
GuiTabPageCtrl

Member Function Documentation

void GuiTabBookCtrl::addPage ( string  title = ""  ) 

Add a new tab page to the control.

Parameters:
title Title text for the tab page header.
int GuiTabBookCtrl::getSelectedPage (  ) 

Get the index of the currently selected tab page.

Returns:
Index of the selected tab page or -1 if no tab page is selected.
void GuiTabBookCtrl::onTabRightClick ( String  text,
int  index 
)

Called when the user right-clicks on a tab page header.

Parameters:
text Text of the page header for the tab that is being selected.
index Index of the tab page being selected.
void GuiTabBookCtrl::onTabSelected ( String  text,
int  index 
)

Called when a new tab page is selected.

Parameters:
text Text of the page header for the tab that is being selected.
index Index of the tab page being selected.
void GuiTabBookCtrl::selectPage ( int  index  ) 

Set the selected tab page.

Parameters:
index Index of the tab page.

Member Data Documentation

Whether reordering tabs with the mouse is allowed.

Index of page to select on first onWake() call (-1 to disable).

X offset of first tab page header.

Minimum width allocated to a tab page header.

Index of currently selected page.

Height of tab page headers.

Spacing to put between individual tab page headers.

Where to place the tab page headers.



Copyright © GarageGames, LLC. All Rights Reserved.