
11. Composite and Derived Widgets 71
Window Display Items
Display items of the type window display a Perl/TK widget.
Window items support the following options:
-style => itemStyle
Specifies the itemStyle to use for this window item.
Must be the name of a widget display style created with
ItemStyle.
-widget => widgetRef
Specifies the widget to display in the item.
Window item style options:
Creating and Manipulating Item Styles
$widget->ItemStyle(itemType, ?-stylename => name?,
?
-refwindow => widgetRef ?, ?-option => value?);
itemType is an existing display item type, a widget refer-
ence or a new type added by the user. -stylename speci-
fies a name for this style. -refwindow specifies a widget to
use for determining the default values of the display type.
If unspecified,
$widget is used. Default values for the dis-
play types can be set via the options database.
$style->delete;
Destroy this display style object.
11. Composite and
Derived Widgets
Composite and derived widgets are defined by a package.
Composites are generally made from a Frame or TopLevel
-anchor -padx
-background -pady
-disabledbackground -selectbackground
-disabledforeground -selectforeground
-foreground -wraplength
-anchor -padx -pady