Highlighting buttons are similar to standard Tk button
widgets. However, they can be "attached" to other widgets in the interface.
When the keyboard focus is owned by a widget which is attached to a
highlighting button, the Return
key can be used to invoke the
button and the button is surrounded by a sunken border (Motif-style) to
indicate this.
hbutton
pathName ?options?
Highlighting buttons support the same configuration options as normal Tk buttons and also:
highlightWidth
HighlightWidth
-highlightwidth
4
highlightBorderWidth
HighlightBorderWidth
-highlightborderwidth
1
-highlight
0
attach
widget command.
button
widget and also:
attach ?-cancel?
\
widget ?widget ...?
-cancel
option is not specified,
the button is attached to the given widgets so that pressing the
Return
key when any of the widgets has the input focus
invokes the button. The relationship between the button and the
attached widgets will be shown by highlighting the button with a
sunken border. If the -cancel
option is specified,
the button is attached to the given widgets so that pressing the
Escape
key when any of the widgets has the input focus
invokes the button. In this case, the button is not highlighted when
an attached widget has the input focus.