summaryrefslogtreecommitdiffstats
path: root/doc/ttk_treeview.n
diff options
context:
space:
mode:
authorbll <brad.lanam.comp@gmail.com>2018-04-09 01:15:15 (GMT)
committerbll <brad.lanam.comp@gmail.com>2018-04-09 01:15:15 (GMT)
commita785520e6f54edc75390fc68e1359ceec2db2764 (patch)
treeec9341e95ea188cd3ff20a94c5220d1d58135c25 /doc/ttk_treeview.n
parent29d2c6e66dfc2727cebc57211d3933b9b23f2395 (diff)
downloadtk-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/ttk_treeview.n')
-rw-r--r--doc/ttk_treeview.n45
1 files changed, 29 insertions, 16 deletions
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