DAZ Script | |
---|---|
TabPosition | { North, South, West, East } |
DAZ Script |
---|
DzTabWidget ( DzWidget parent ) |
DAZ Script | |
---|---|
Number | addTab ( DzWidget page, String label ) |
void | clear () |
DzWidget | cornerWidget () |
DzWidget | currentWidget () |
Number | indexOf ( DzWidget page ) |
Number | insertTab ( Number index, DzWidget page, String label ) |
bool | isTabEnabled ( Number index ) |
void | removeTab ( Number index ) |
void | setCornerWidget ( DzWidget widget ) |
void | setCurrentWidget ( DzWidget page ) |
void | setTabEnabled ( Number index, Boolean enable ) |
void | setTabText ( Number index, String label ) |
void | setTabToolTip ( Number index, String tip ) |
void | setTabWhatsThis ( Number index, String text ) |
String | tabText ( Number index ) |
String | tabToolTip ( Number index ) |
String | tabWhatsThis ( Number index ) |
DzWidget | widget ( Number index ) |
void | currentChanged ( Number index ) |
void | tabCloseRequested ( Number index ) |
Provides a stack of tabbed widgets.
Enumerated value for describing where the tab is drawn.
The number of tabs in the tab stack. (Read Only)
The index position of the current tab page.
Whether the widget is rendered in a mode suitable for document pages, without a frame.
Whether the tabs can be reordered.
Holds which side of the widget the tab row is drawn on.
Whether close buttons are automatically added to each tab.
See Also:
Whether a tab bar should use buttons to scroll tabs when it has many tabs.
DzTabWidget( DzWidget parent )
Creates a tab widget as a child of the given parent widget.
Parameter(s):
Number : addTab( DzWidget page, String label )
Adds page
as a new tab with the given label
.
Return Value:
void : clear()
Removes all the pages, but does not delete them.
DzWidget : cornerWidget()
Return Value:
Return Value:
Number : indexOf( DzWidget page )
Return Value:
widget
, or -1 if widget
cannot be found.Number : insertTab( Number index, DzWidget page, String label )
Inserts page
as a new tab with the label label
at position index
.
Return Value:
bool : isTabEnabled( Number index )
Return Value:
true
if the page at position index
is enabled, otherwise false
.void : removeTab( Number index )
Removes the page at index
from the tab widget.
Attention:
void : setCornerWidget( DzWidget widget )
Sets widget
to be shown in the corner of the tab widget.
void : setCurrentWidget( DzWidget page )
Makes widget
the current page.
void : setTabEnabled( Number index, Boolean enable )
Sets the enabled state of the page at position index
.
void : setTabText( Number index, String label )
Sets the label of the page at position index
.
void : setTabToolTip( Number index, String tip )
Sets the tool tip text for the page at position index
.
void : setTabWhatsThis( Number index, String text )
Sets the what's this text for the page at position index
.
String : tabText( Number index )
Return Value:
index
.String : tabToolTip( Number index )
Return Value:
index
.String : tabWhatsThis( Number index )
Return Value:
index
.DzWidget : widget( Number index )
Return Value:
index
.void : currentChanged( Number index )
Signature:“currentChanged(int)”
Emitted whenever the current page index changes.
void : tabCloseRequested( Number index )
Signature:“tabCloseRequested(int)”
Emitted when the close button on a tab is clicked.