A tab object is a refinement of a dialog_group object, which implies it is a device specialised for displaying dialog_item objects.
A tab shows its name as a label above a flat rounded box with its
contents. Tabs are designed to cooperate in a tab_stack
object, to achieve a stack of sheets holding controllers,
which allows the user to switch by clicking the desired tab.
Tabs are normally used to establish settings for a system that has many settings. Groups of related settings will be placed on a separate tab.
Each label is a pill: a box with a half circle at each end. The label
of the tab on top has an edge in the accent colour. The labels of the
hidden tabs have their background moved a little towards the text colour
and dimmed text. This works for light and dark themes alike. The box
around the contents is drawn in the class variable
border_colour.
See also class tab_stack.
<-closable) sits in
the one at the right end. It is dimmed with the label of a hidden tab.
Default
@nil.->layout_labels.<-status:
on_top, in which case it will display both the label and the contents.
Otherwise it will only display the label.
-area of
the tab, invoke
tab->label_event.
Otherwise if the tab is top-most (see
tab_stack->on_top
and tab<-status)
process the event on the content of the tab. See dialog_group->event.<-status
is on_top, the drawing area of the tab is inverted,
otherwise the tag is inverted. See also graphical->flash.stack using the method
tab_stack->append
or using tab_stack->initialise.->on_top)
on receiving an ms_left_down event. This method may be refined -for
example- to attach a popup
object to the tab. See also
tab->event
and graphical->event.->positionInherits description from: tab->position
Inherits description from: tab->position