
CHAPTER 4: User-Interface Tools Control objects 127
group Group
A container for other controls. Containers have additional properties
that control the children; see “
Container properties” on page 115.
Hiding a group hides all its children. Making it visible makes visible
those children that are not individually hidden.
To add to a window
w:
w.add (“group” [, bounds, {creation_properties}]);
bounds
: Optional. The element’s position and size.
creation_properties: Optional. An object that contains any of
the following properties:
name: A unique name for the control.
iconbutton IconButton
A mouse-sensitive pushbutton containing an icon. Calls the onClick
callback if the control is clicked or if its notify()
method is called.
To add to a window
w:
w.add (“iconbutton” [, bounds, icon,
{creation_properties}]);
bounds: Optional. The control’s position and size.
icon: Optional. The named resource for the icon or family of
icons displayed in the button control, or a pathname or File
object for an image file. Images must be in PNG format.
creation_properties: Optional. An object that contains the
following property:
name: A unique name for the control.
style: A string for the visual style, one of:
button: Has a visible border with a raised or 3D
appearance.
toolbutton: Has a flat appearance, appropriate for
inclusion in a toolbar
toggle: For a button-style control, a value of true causes it
to get a button-pressed appearance the first time it is
clicked, and alternate with the unpressed appearance each
time it is clicked. The toggle state is reflected in the control’s
value property.
Type keyword Class name Description
Comentarios a estos manuales