
CHAPTER 4: User-Interface Tools Control objects 134
tab
(cont’d) creation_properties: Optional. An object that contains the
following property:
name: A unique name for the control.
tabbedpanel TabbedPanel
A container for selectable Tab containers. Differs from a Panel
element in that it can contain only
Tab elements as direct children.
Containers have additional properties that control the children; see
“
Container properties” on page 115. Hiding a panel hides all its
children. Making it visible makes visible those children that are not
individually hidden.
The selected
tab child is the value of the parent’s selection
property. One and only one of the
tab children must be selected;
selecting one deselects the others. When the value of the
selection
property changes, either by a user selecting a different tab, or by a
script setting the property, the
tabbedpanel receives an onChange
notification.
To add to a window
w:
w.add ("tabbedpanel" [, bounds, text,
{creation_properties}]);
bounds: Optional. The element’s position and size. This
determines the sizes and positions of the tab children.
text: Ignored.
creation_properties: Optional. An object that contains the
following property:
name: A unique name for the control.
treeview TreeView
A hierarchical list whose items can contain child items. Items at any
level of the tree can be individually selected. Calls the onChange
callback if the item selection is changed by a script or the user, or if
the object’s notify()
method is called.
To add to a window
w:
w.add (“treeview” [, bounds, items,
{creation_properties}])
bounds: Optional. The control’s position and size.
items: Optional. An array of strings for the text of each top-level
list item. A
ListItem object is created for each item. An item
with the type
node can contain child items. Supply this
argument, or the
items property in creation_properties, not
both.
Type keyword Class name Description
Comentarios a estos manuales