diff options
author | fvogel <fvogelnew1@free.fr> | 2023-07-14 19:13:55 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2023-07-14 19:13:55 (GMT) |
commit | ee2696999f9ff5ba58e62f256684a334feae4feb (patch) | |
tree | cf8713f8ce177c5fe23490e7d9e2f65cc65cabf7 /doc | |
parent | ae5f616528f6c6bdaf8292ad9e196c0b4c4350bd (diff) | |
download | tk-ee2696999f9ff5ba58e62f256684a334feae4feb.zip tk-ee2696999f9ff5ba58e62f256684a334feae4feb.tar.gz tk-ee2696999f9ff5ba58e62f256684a334feae4feb.tar.bz2 |
Document indices of the form 'end-n' as being accepted by the -underline option for both Tk and Ttk.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/options.n | 3 | ||||
-rw-r--r-- | doc/ttk_widget.n | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/options.n b/doc/options.n index b1af80d..de03ec8 100644 --- a/doc/options.n +++ b/doc/options.n @@ -316,7 +316,8 @@ Specifies the integer index of a character to underline in the widget. This option is used by the default bindings to implement keyboard traversal for menu buttons and menu entries. 0 corresponds to the first character of the text displayed in the -widget, 1 to the next character, and so on. +widget, 1 to the next character, and so on. \fBend\fR corresponds to the +last character, \fBend\fR-1 to the before last character, and so on. .OP \-wraplength wrapLength WrapLength For widgets that can perform word-wrapping, this option specifies the maximum line length. diff --git a/doc/ttk_widget.n b/doc/ttk_widget.n index 23f2118..5e16297 100644 --- a/doc/ttk_widget.n +++ b/doc/ttk_widget.n @@ -136,7 +136,8 @@ Specifies the name of a global variable whose value will be used in place of the \fB\-text\fR resource. .OP \-underline underline Underline If set, specifies the integer index (0-based) of a character to underline -in the text string. +in the text string. \fBend\fR corresponds to the last character, +\fBend\fR-1 to the before last character, and so on. The underlined character is used for mnemonic activation. .OP \-width width Width If greater than zero, specifies how much space, in character widths, |