Element: tab_window.tab_buttons[ ]

Type

panel

Description

The tab button children of tab_window. The size of the array is tab_window.child_count.

Tab buttons are created as children of tab windows by the wtab command and each can have a text label and/or an image.
These attributes can be changed by accessing the relevant elements of the panels. Each panel is of panel type "tab_button".

Tab buttons can be added or deleted only by recreating the tab window.

Example

Change the text label of the second tab button of an existing tab window (mytabwin).

mytabwin.tab_buttons[2].label = 'Properties'

Notes

The only attributes of a tab button which may be changed after tab window creation are the text label (.label), the image (.image) and the text color (.text_color).

See Also

Structures:

panel