diff options
author | bll <brad.lanam.comp@gmail.com> | 2018-04-09 01:15:15 (GMT) |
---|---|---|
committer | bll <brad.lanam.comp@gmail.com> | 2018-04-09 01:15:15 (GMT) |
commit | a785520e6f54edc75390fc68e1359ceec2db2764 (patch) | |
tree | ec9341e95ea188cd3ff20a94c5220d1d58135c25 /doc | |
parent | 29d2c6e66dfc2727cebc57211d3933b9b23f2395 (diff) | |
download | tk-a785520e6f54edc75390fc68e1359ceec2db2764.zip tk-a785520e6f54edc75390fc68e1359ceec2db2764.tar.gz tk-a785520e6f54edc75390fc68e1359ceec2db2764.tar.bz2 |
Fix ordering errors and display fonts.
Add parameter text to all options.
Verify ttk::treeview styling options.
Update ttk::combobox styling doc.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ttk_button.n | 30 | ||||
-rw-r--r-- | doc/ttk_checkbutton.n | 21 | ||||
-rw-r--r-- | doc/ttk_combobox.n | 47 | ||||
-rw-r--r-- | doc/ttk_entry.n | 32 | ||||
-rw-r--r-- | doc/ttk_frame.n | 2 | ||||
-rw-r--r-- | doc/ttk_label.n | 8 | ||||
-rw-r--r-- | doc/ttk_labelframe.n | 24 | ||||
-rw-r--r-- | doc/ttk_menubutton.n | 16 | ||||
-rw-r--r-- | doc/ttk_notebook.n | 37 | ||||
-rw-r--r-- | doc/ttk_panedwindow.n | 20 | ||||
-rw-r--r-- | doc/ttk_progressbar.n | 18 | ||||
-rw-r--r-- | doc/ttk_radiobutton.n | 21 | ||||
-rw-r--r-- | doc/ttk_scale.n | 18 | ||||
-rw-r--r-- | doc/ttk_scrollbar.n | 16 | ||||
-rw-r--r-- | doc/ttk_separator.n | 4 | ||||
-rw-r--r-- | doc/ttk_sizegrip.n | 4 | ||||
-rw-r--r-- | doc/ttk_spinbox.n | 30 | ||||
-rw-r--r-- | doc/ttk_treeview.n | 45 |
18 files changed, 197 insertions, 196 deletions
diff --git a/doc/ttk_button.n b/doc/ttk_button.n index 2aaad18..6d81ff5 100644 --- a/doc/ttk_button.n +++ b/doc/ttk_button.n @@ -61,42 +61,40 @@ themes, which is useful for creating widgets for toolbars. .PP The class name for a \fBttk::button\fP is \fBTButton\fP. .PP -Dynamic states: active, disabled, pressed, readonly. +Dynamic states: \fBactive\fP, \fBdisabled\fP, \fBpressed\fP, \fBreadonly\fP. .PP \fBTButton\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-anchor\fP +\fB-anchor\fP \fIanchor\fP .br -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-bordercolor\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-darkcolor\fP +\fB-darkcolor\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-font\fP +\fB-font\fP \fIfont\fP .br -\fB-highlightcolor\fP +\fB-highlightcolor\fP \fIcolor\fP .br -\fB-highlightthickness\fP +\fB-highlightthickness\fP \fIamount\fP .br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .br -\fB-relief\fP -.br -\fB-shiftrelief\fP +\fB-relief\fP \fIrelief\fP .br +\fB-shiftrelief\fP \fIamount\fP .RS -shiftrelief specifies how far the button contents are shifted down and right in the \fIpressed\fP state. This action provides additional skeumorphic feedback. .RE -.br -\fB-width\fP +\fB-width\fP \fIamount\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_checkbutton.n b/doc/ttk_checkbutton.n index c62bf3f..6a13cd9 100644 --- a/doc/ttk_checkbutton.n +++ b/doc/ttk_checkbutton.n @@ -72,29 +72,26 @@ standard themes, which is useful for creating widgets for toolbars. .PP The class name for a \fBttk::checkbutton\fP is \fBTCheckbutton\fP. .PP -Dynamic states: active, alternate, disabled, pressed, selected, readonly. +Dynamic states: \fBactive\fP, \fBalternate\fP, \fBdisabled\fP, +\fBpressed\fP, \fBselected\fP, \fBreadonly\fP. .PP \fBTCheckbutton\fP styling options configurable with \fBttk::style\fP are: .PP .br -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-indicatorbackground\fP +\fB-indicatorbackground\fP \fIcolor\fP .br -\fB-indicatorcolor\fP +\fB-indicatorcolor\fP \fIcolor\fP .br -\fB-indicatormargin\fP +\fB-indicatormargin\fP \fIpadding\fP .br -.RS -This is a padding value. -.RE +\fB-indicatorrelief\fP \fIrelief\fP .br -\fB-indicatorrelief\fP -.br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_combobox.n b/doc/ttk_combobox.n index 41eafed..317f982 100644 --- a/doc/ttk_combobox.n +++ b/doc/ttk_combobox.n @@ -117,68 +117,67 @@ The \fBttk::combobox\fP uses the \fBentry\fP and \fBlistbox\fP widgets internally. The listbox frame has a class name of \fBComboboxPopdownFrame\fP. .PP -Dynamic states: disabled, focus, pressed, readonly. +Dynamic states: \fBdisabled\fP, \fBfocus\fP, \fBpressed\fP, \fBreadonly\fP. .PP \fBTCombobox\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-arrowcolor\fP +\fB-arrowcolor\fP \fIcolor\fP .br -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-focusfill\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-focusfill\fP .br -\fB-fieldbackground\fP +\fB-foreground\fP \fIcolor\fP .br +\fB-fieldbackground\fP \fIcolor\fP .RS Can only be changed when using non-native and non-graphical themes. .RE +\fB-insertwidth\fP \fIamount\fP .br -\fB-insertwidth\fP -.br -\fB-padding\fP -.br -\fB-postoffset\fP +\fB-padding\fP \fIpadding\fP .br -\fB-selectbackground\fP +\fB-postoffset\fP \fIpadding\fP .br +\fB-selectbackground\fP \fIcolor\fP .RS Text entry select background. .RE -.br -\fB-selectforeground\fP -.br +\fB-selectforeground\fP \fIcolor\fP .RS Text entry select foreground. .RE -.br -\fB-bordercolor\fP -.br +.PP +The \fBttk::combobox\fP popdown listbox cannot be configured using +\fBttk::style\fP nor via the widget \fBconfigure\fP command. The listbox +can be configured using the option database. +.PP option add *TCombobox*Listbox.background \fIcolor\fP .br +option add *TCombobox*Listbox.font \fIfont\fP +.br option add *TCombobox*Listbox.foreground \fIcolor\fP .br option add *TCombobox*Listbox.selectBackground \fIcolor\fP .br option add *TCombobox*Listbox.selectForeground \fIcolor\fP -.br -option add *TCombobox*Listbox.font \fIfont\fP .PP -To set the font size for a specific listbox (subject to future change): +To configure a specific listbox (subject to future change): .CS set popdown [ttk::combobox::PopdownWindow .mycombobox] -$popdown.f.l configure -font namedfont +$popdown.f.l configure -font \fIfont\fP .CE .PP \fBComboboxPopdownFrame\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-borderwidth\fP +\fB-borderwidth\fP \fIamount\fP .br -\fB-relief\fP +\fB-relief\fP \fIrelief\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_entry.n b/doc/ttk_entry.n index d60f0d2..41fdb9c 100644 --- a/doc/ttk_entry.n +++ b/doc/ttk_entry.n @@ -465,44 +465,40 @@ and clears it whenever validation succeeds. .PP The class name for a \fBttk::entry\fP is \fBTEntry\fP. .PP -Dynamic states: disabled, focus, readonly. +Dynamic states: \fBdisabled\fP, \fBfocus\fP, \fBreadonly\fP. .PP \fBTEntry\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP -.br +\fB-background\fP \fIcolor\fP .RS -When using the aqua theme (Mac OS X), changes the -fieldbackground. +When using the aqua theme (Mac OS X), changes the \fB-fieldbackground\fP. .RE +\fB-bordercolor\fP \fIcolor\fP .br -\fB-bordercolor\fP -.br -\fB-darkcolor\fP -.br -\fB-fieldbackground\fP +\fB-darkcolor\fP \fIcolor\fP .br +\fB-fieldbackground\fP \fIcolor\fP .RS Does not work with the aqua theme (Mac OS X). .br Some themes use a graphical background and their field background colors cannot be changed. .RE +\fB-foreground\fP \fIcolor\fP .br -\fB-foreground\fP -.br -\fB-lightcolor\fP +\fB-insertwidth\fP \fIamount\fP .br -\fB-insertwidth\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .br -\fB-relief\fP +\fB-relief\fP \fIrelief\fP .br -\fB-selectbackground\fP +\fB-selectbackground\fP \fIcolor\fP .br -\fB-selectborderwidth\fP +\fB-selectborderwidth\fP \fIamount\fP .br -\fB-selectforeground\fP +\fB-selectforeground\fP \fIcolor\fP .PP See the \fBttk::style\fP manual page for information on how to configure ttk styles. diff --git a/doc/ttk_frame.n b/doc/ttk_frame.n index b292bf6..b397637 100644 --- a/doc/ttk_frame.n +++ b/doc/ttk_frame.n @@ -52,7 +52,7 @@ The class name for a \fBttk::frame\fP is \fBTFrame\fP. \fBTFrame\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_label.n b/doc/ttk_label.n index 8b345aa..ced810a 100644 --- a/doc/ttk_label.n +++ b/doc/ttk_label.n @@ -67,16 +67,16 @@ see \fIttk::widget(n)\fR. .PP The class name for a \fBttk::label\fP is \fBTLabel\fP. .PP -Dynamic states: disabled, readonly. +Dynamic states: \fBdisabled\fP, \fBreadonly\fP. .PP \fBTLabel\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-font\fP +\fB-font\fP \fIfont\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_labelframe.n b/doc/ttk_labelframe.n index 53ef6c3..db4a30c 100644 --- a/doc/ttk_labelframe.n +++ b/doc/ttk_labelframe.n @@ -71,35 +71,35 @@ The class name for a \fBttk::labelframe\fP is \fBTLabelframe\fP. The text label has a class of \fBTLabelframe.Label\fP. .PP -Dynamic states: disabled, readonly. +Dynamic states: \fBdisabled\fP, \fBreadonly\fP. .PP \fBTLabelframe\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-bordercolor\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-borderwidth\fP +\fB-borderwidth\fP \fIamount\fP .br -\fB-darkcolor\fP +\fB-darkcolor\fP \fIcolor\fP .br -\fB-labeloutside\fP +\fB-labelmargins\fP \fIamount\fP .br -\fB-labelmargins\fP +\fB-labeloutside\fP \fIboolean\fP .br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-relief\fP +\fB-relief\fP \fIrelief\fP .PP \fBTLabelframe.Label\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-font\fP +\fB-font\fP \fIfont\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_menubutton.n b/doc/ttk_menubutton.n index 68c8889..f51b0cc 100644 --- a/doc/ttk_menubutton.n +++ b/doc/ttk_menubutton.n @@ -49,24 +49,24 @@ standard themes, which is useful for creating widgets for toolbars. .PP The class name for a \fBttk::menubutton\fP is \fBTMenubutton\fP. .PP -Dynamic states: active, disabled, readonly. +Dynamic states: \fBactive\fP, \fBdisabled\fP, \fBreadonly\fP. .PP \fBTMenubutton\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-arrowsize\fP +\fB-arrowsize\fP \fIamount\fP .br -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-font\fP +\fB-font\fP \fIfont\fP .br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .br -\fB-relief\fP +\fB-relief\fP \fIrelief\fP .br -\fB-width\fP +\fB-width\fP \fIamount\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_notebook.n b/doc/ttk_notebook.n index 2d6cf4b..986d5d2 100644 --- a/doc/ttk_notebook.n +++ b/doc/ttk_notebook.n @@ -213,43 +213,44 @@ ttk::notebook::enableTraversal .nb The class name for a \fBttk::notebook\fP is \fBTNotebook\fP. The tab has a class name of \fBTNotebook.Tab\fP .PP -Dynamic states: active, disabled, selected +Dynamic states: \fBactive\fP, \fBdisabled\fP, \fBselected\fP. .PP \fBTNotebook\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-darkcolor\fP +\fB-darkcolor\fP \fIcolor\fP .br -\fB-expand\fP +\fB-foreground\fP \fIcolor\fP .br -.RS --expand is a padding value. -.RE -.br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-padding\fP \fIpadding\fP .br -\fB-padding\fP +\fB-tabmargins\fP \fIpadding\fP .br -\fB-tabmargins\fP +\fB-tabposition\fP \fIside\fP .br -\fB-tabposition\fP .PP \fBTNotebook.Tab\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-bordercolor\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-font\fP +\fB-expand\fP \fIpadding\fP +.RS +Defines how much the tab grows in size. Usually used with the +\fBselected\fP dynamic state. \fB-tabmargins\fP should be +set appropriately so that there is room for the tab growth. +.RE +\fB-font\fP \fIfont\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_panedwindow.n b/doc/ttk_panedwindow.n index 3e35cba..1cdd756 100644 --- a/doc/ttk_panedwindow.n +++ b/doc/ttk_panedwindow.n @@ -128,28 +128,28 @@ sash has a class name of \fBSash\fP. \fBTPanedwindow\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .PP \fBSash\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-bordercolor\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-gripcount\fP +\fB-gripcount\fP \fIcount\fP .br -\fB-handlepad\fP +\fB-handlepad\fP \fIamount\fP .br -\fB-handlesize\fP +\fB-handlesize\fP \fIamount\fP .br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-sashpad\fP +\fB-sashpad\fP \fIamount\fP .br -\fB-sashrelief\fP +\fB-sashrelief\fP \fIrelief\fP .br -\fB-sashthickness\fP +\fB-sashthickness\fP \fIamount\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_progressbar.n b/doc/ttk_progressbar.n index 2e88e8e..6dd3be3 100644 --- a/doc/ttk_progressbar.n +++ b/doc/ttk_progressbar.n @@ -93,19 +93,23 @@ The class name for a \fBttk::progressbar\fP is \fBTProgressbar\fP. \fBTProgressbar\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-bordercolor\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-darkcolor\fP +\fB-darkcolor\fP \fIcolor\fP .br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br \fB-maxphase\fP -.br +.RS +For the aqua theme. +.RE \fB-period\fP -.br -\fB-troughcolor\fP +.RS +For the aqua theme. +.RE +\fB-troughcolor\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_radiobutton.n b/doc/ttk_radiobutton.n index 7424e27..09841ac 100644 --- a/doc/ttk_radiobutton.n +++ b/doc/ttk_radiobutton.n @@ -69,29 +69,26 @@ standard themes, which is useful for creating widgets for toolbars. .PP The class name for a \fBttk::radiobutton\fP is \fBTRadiobutton\fP. .PP -Dynamic states: active, alternate, disabled, pressed, selected, readonly. +Dynamic states: \fBactive\fP, \fBalternate\fP, \fBdisabled\fP, +\fBpressed\fP, \fBreadonly\fP, \fBselected\fP. .PP \fBTRadiobutton\fP styling options configurable with \fBttk::style\fP are: .PP .br -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-indicatorbackground\fP +\fB-indicatorbackground\fP \fIcolor\fP .br -\fB-indicatorcolor\fP +\fB-indicatorcolor\fP \fIcolor\fP .br -\fB-indicatormargin\fP +\fB-indicatormargin\fP \fIpadding\fP .br -.RS -This is a padding value. -.RE +\fB-indicatorrelief\fP \fIrelief\fP .br -\fB-indicatorrelief\fP -.br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_scale.n b/doc/ttk_scale.n index 1aeb4c7..91aeedd 100644 --- a/doc/ttk_scale.n +++ b/doc/ttk_scale.n @@ -95,26 +95,26 @@ is omitted. .PP The class name for a \fBttk::scale\fP is \fBTProgressbar\fP. .PP -Dynamic states: active. +Dynamic states: \fBactive\fP. .PP \fBTProgressbar\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-borderwidth\fP +\fB-borderwidth\fP \fIamount\fP .br -\fB-darkcolor\fP +\fB-darkcolor\fP \fIcolor\fP .br -\fB-groovewidth\fP +\fB-groovewidth\fP \fIamount\fP .br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-sliderwidth\fP +\fB-sliderwidth\fP \fIamount\fP .br -\fB-troughcolor\fP +\fB-troughcolor\fP \fIcolor\fP .br -\fB-troughrelief\fP +\fB-troughrelief\fP \fIrelief\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_scrollbar.n b/doc/ttk_scrollbar.n index de92d86..060da44 100644 --- a/doc/ttk_scrollbar.n +++ b/doc/ttk_scrollbar.n @@ -158,24 +158,24 @@ grid rowconfigure $f 0 \-weight 1 .PP The class name for a \fBttk::scrollbar\fP is \fBTScrollbar\fP. .PP -Dynamic states: active, disabled. +Dynamic states: \fBactive\fP, \fBdisabled\fP. .PP \fBTScrollbar\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-arrowcolor\fP +\fB-arrowcolor\fP \fIcolor\fP .br -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-bordercolor\fP +\fB-bordercolor\fP \fIcolor\fP .br -\fB-darkcolor\fP +\fB-darkcolor\fP \fIcolor\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-troughcolor\fP +\fB-troughcolor\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_separator.n b/doc/ttk_separator.n index d35c390..e158671 100644 --- a/doc/ttk_separator.n +++ b/doc/ttk_separator.n @@ -32,12 +32,12 @@ methods. No other widget methods are used. .PP .SH "STYLING OPTIONS" .PP -The class name for a \fBttk::frame\fP is \fBTSeparator\fP. +The class name for a \fBttk::separator\fP is \fBTSeparator\fP. .PP \fBTSeparator\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_sizegrip.n b/doc/ttk_sizegrip.n index 0a5e46b..df8c37e 100644 --- a/doc/ttk_sizegrip.n +++ b/doc/ttk_sizegrip.n @@ -62,12 +62,12 @@ the sizegrip widget will not resize the window. resizing. .SH "STYLING OPTIONS" .PP -The class name for a \fBttk::frame\fP is \fBTSizegrip\fP. +The class name for a \fBttk::sizegrip\fP is \fBTSizegrip\fP. .PP \fBTSizegrip\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_spinbox.n b/doc/ttk_spinbox.n index 0282af2..48cfffd 100644 --- a/doc/ttk_spinbox.n +++ b/doc/ttk_spinbox.n @@ -84,40 +84,36 @@ user presses <Down>. .PP The class name for a \fBttk::spinbox\fP is \fBTSpinbox\fP. .PP -Dynamic states: active, focus, disabled, readonly +Dynamic states: \fBactive\fP, \fBdisabled\fP, \fBfocus\fP, \fBreadonly\fP. .PP \fBTSpinbox\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-arrowcolor\fP +\fB-arrowcolor\fP \fIcolor\fP .br -\fB-arrowsize\fP -.br -\fB-background\fP +\fB-arrowsize\fP \fIamount\fP .br +\fB-background\fP \fIcolor\fP .RS -When using the aqua theme (Mac OS X), changes the -fieldbackground. +When using the aqua theme (Mac OS X), changes the \fB-fieldbackground\fP. .RE +\fB-bordercolor\fP \fIcolor\fP .br -\fB-bordercolor\fP -.br -\fB-darkcolor\fP -.br -\fB-fieldbackground\fP +\fB-darkcolor\fP \fIcolor\fP .br +\fB-fieldbackground\fP \fIcolor\fP .RS Does not work with the aqua theme (Mac OS X). .RE +\fB-foreground\fP \fIcolor\fP .br -\fB-foreground\fP -.br -\fB-lightcolor\fP +\fB-lightcolor\fP \fIcolor\fP .br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .br -\fB-selectbackground\fP +\fB-selectbackground\fP \fIcolor\fP .br -\fB-selectforeground\fP +\fB-selectforeground\fP \fIcolor\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_treeview.n b/doc/ttk_treeview.n index 375d6b5..7ac9825 100644 --- a/doc/ttk_treeview.n +++ b/doc/ttk_treeview.n @@ -481,47 +481,60 @@ The treeview header class name is \fBHeading\fP. The treeview item class name is \fBItem\fP. The treeview cell class name is \fBCell\fP. .PP -Dynamic states: disabled, selected. +Dynamic states: \fBdisabled\fP, \fBselected\fP. .PP \fBTreeview\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-fieldbackground\fP +\fB-fieldbackground\fP \fIcolor\fP .br -\fB-font\fP +\fB-font\fP \fIfont\fP .br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-rowheight\fP +\fB-rowheight\fP \fIamount\fP +.RS +The \fB-rowheight\fP value is not corrected by the \fBtk scaling\fP +value or by the configured font size and must always be set. Also make +sure that the \fB-rowheight\fP is large enough to contain any images. +.PP +To adjust the \fB-rowheight\fP for the Treeview style, use the following code +after \fBtk scaling\fP has been applied. +Note that even if you do not support or change \fBtk scaling\fP +in your program, your users may have it set in their .wishrc. +.RE +.PP +.CS +ttk::style configure Treeview \\ + -rowheight [expr {[font metrics \fBfont\fP -linespace] + 2}] +.CE .PP \fBHeading\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-background\fP +\fB-background\fP \fIcolor\fP .br -\fB-font\fP +\fB-font\fP \fIfont\fP .br -\fB-relief\fP +\fB-relief\fP \fIrelief\fP .PP \fBItem\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-diameter\fP -.br -\fB-foreground\fP +\fB-foreground\fP \fIcolor\fP .br -\fB-indicatormargins\fP +\fB-indicatormargins\fP \fIpadding\fP .br -\fB-indicatorsize\fP +\fB-indicatorsize\fP \fIamount\fP .br -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .PP \fBCell\fP styling options configurable with \fBttk::style\fP are: .PP -\fB-padding\fP +\fB-padding\fP \fIpadding\fP .PP Some options are only available for specific themes. .PP |