next up previous contents index
Next: IV. Appendix Up: III. System Integration Previous: 25. TkSGML System integration   Contents   Index

26. Bindings

Sgml widgets make use of Tk's widget class system. The class name for SGML widgets is Sgml, distinguished by the uppercase first letter from the name of the widget command sgml.

Like for any other Tk widget class, class bindings can be established for all Sgml widgets. The default bindings come from the file sgml.tcl that has been installed in your tk_library directory.


26.1 Default Bindings

The sgml widget automatically creates class bindings for widgets that give them the following default behavior.

In the descriptions below, ``word'' refers to a contiguous group of letters, entities, digits, or ``_'' characters, or any single character other than these.

If the widget is disabled using the -state option, then its view can still be adjusted and text can still be selected, but no insertion cursor will be displayed and no text modifications will take place.

The behavior of sgml widgets can be changed by defining new bindings for individual widgets or by redefining the class bindings. Please refer to the documentation for the Tk bind command for details on how to change bindings.


next up previous contents index
Next: IV. Appendix Up: III. System Integration Previous: 25. TkSGML System integration   Contents   Index
TkSGML Reference Manual