next up previous contents index
Next: 7. Loading, saving, and Up: II. Widget Commands Previous: 5. Widget commands overview   Contents   Index


6. Configuring the widget

The configuration options for an existing widget can be retrieved or changed with the pathname configure widget command.



Widget configuration commands


configure option ?value option value ...?
  Query or modify the configuration options for an sgml widget. If only the option argument is supplied, the command returns the current value of the configuration option option. If a value is supplied, the configuration option option is set to this value. In this second form, any number of option-value pairs can be specified.
cget option
  Returns the current value of the configuration option option.



6.1 Configuration options

6.1.1 Standard options

The sgml widget supports many of the Tk standard configuration options and an additional set of widget-specific configuration options. The supported standard configuration options are:

6.1.2 Widget-specific options

The following widget-specific options are supported by the sgml widget:

6.2 Using the option database

Default values for configuration options that are not specified when an sgml widget is created are looked up in the option database. The following table contains the name of the command-line options and their corresponding widget and class names that are used for the database lookup.

Command-Line Database Name Database Class Page
-attributenotifycmd attributeNotifyCmd AttributeNotifyCmd [*]
-background or -bg background Background [*]
-bold bold Bold [*]
-borderwidth or -bd borderWidth BorderWidth [*]
-cursor cursor Cursor [*]
-deletenotifycmd deleteNotifyCmd DeleteNotifyCmd [*]
-expandtext expandText ExpandText [*]
-exportselection exportSelection ExportSelection [*]
-family family Family [*]
-font font Font [*]
-foreground or -fg foreground Foreground [*]
-height height Height [*]
-highlightbackground highlightBackground HighlightBackground [*]
-highlightcolor highlightColor HighlightColor [*]
-highlightthickness highlightThickness HighlightThickness [*]
-insertbackground insertBackground Foreground [*]
-insertborderwidth insertBorderWidth BorderWidth [*]
-insertnotifycmd insertNotifyCmd InsertNotifyCmd [*]
-insertofftime insertOffTime OffTime [*]
-insertontime insertOnTime OnTime [*]
-insertwidth insertWidth InsertWidth [*]
-italic italic Italic [*]
-maxmessages maxMessages MaxMessages [*]
-overstrike overstrike Overstrike [*]
-padx padX Pad [*]
-pady padY Pad [*]
-parentnotifycmd parentNotifyCmd ParentNotifyCmd [*]
-prologcmd prologCmd PrologCmd [*]
-relief relief Relief [*]
-selectbackground selectBackground Foreground [*]
-selectborderwidth selectBorderWidth BorderWidth [*]
-selectforeground selectForeground Background [*]
-setgrid setGrid SetGrid [*]
-showattributes showAttributes ShowAttributes [*]
-size size Size [*]
-spacing1 spacing1 Spacing1 [*]
-spacing2 spacing2 Spacing2 [*]
-spacing3 spacing3 Spacing3 [*]
-state state State [*]
-strictRules strictRules StrictRules [*]
-tabs tabs Tabs [*]
-tagbackground tagBackground TagBackground [*]
-tagborderwidth tagBorderWidth TagBorderWidth [*]
-tagfont tagFont TagFont [*]
-tagforeground tagForeground TagForeground [*]
-taginvalid tagInvalid TagInvalid [*]
-tagipadx tagIpadX TagIpadX [*]
-tagipady tagIpadY TagIpadY [*]
-tagpadx tagpadX TagPadX [*]
-tagpady tagpadY TagPadY [*]
-takefocus takeFocus TakeFocus [*]
-underline underline Underline [*]
-validnotifycmd validNotifyCmd ValidNotifyCmd [*]
-width width Width [*]
-wrap wrap Wrap [*]
-xscrollcommand xScrollCommand ScrollCommand [*]
-yscrollcommand yScrollCommand ScrollCommand [*]


next up previous contents index
Next: 7. Loading, saving, and Up: II. Widget Commands Previous: 5. Widget commands overview   Contents   Index
TkSGML Reference Manual