summaryrefslogtreecommitdiffstats
path: root/doc/ttk_notebook.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-10-25 21:06:25 (GMT)
commit0d5336db012f45753abace489f18f0ca299c6961 (patch)
treeb1bf3280a9046df99226158978502eeb26f5b0a3 /doc/ttk_notebook.n
parente97381a6d921de403516d5b761539a450f4af83c (diff)
parent1320b8a2a9c1269a345d44d673a7a35707fbbe9c (diff)
downloadtk-core-tip-626.zip
tk-core-tip-626.tar.gz
tk-core-tip-626.tar.bz2
Merge 9.0core-tip-626
Diffstat (limited to 'doc/ttk_notebook.n')
-rw-r--r--doc/ttk_notebook.n15
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/ttk_notebook.n b/doc/ttk_notebook.n
index b7844a7..a53bb43 100644
--- a/doc/ttk_notebook.n
+++ b/doc/ttk_notebook.n
@@ -292,6 +292,9 @@ you will have to adapt the above settings as follows:
ttk::style configure $nbStyle -tabmargins {2 0 2 2}
ttk::style map $nbStyle.Tab -expand {selected {2 2 2 2}}
.CE
+The easiest way to do this is to invoke the library procedure
+\fBttk::configureNotebookStyle\fP with \fB$nbStyle\fP as argument, after
+setting the style's \fB\-tabposition\fP option.
.RE
\fB\-font\fP \fIfont\fP
.br
@@ -299,9 +302,8 @@ ttk::style map $nbStyle.Tab -expand {selected {2 2 2 2}}
.br
\fB\-padding\fP \fIpadding\fP
.RS
-Some themes (e.g., \fBclam\fP) use a different \fIpadding\fP for the
-selected tab. For example, the Ttk library file \fBclamTheme.tcl\fP
-contains the lines
+Some themes use a different \fIpadding\fP for the selected tab. For example,
+the Ttk library file \fBclamTheme.tcl\fP contains the lines
.CS
ttk::style configure TNotebook.Tab \\
-padding {4.5p 1.5p 4.5p 1.5p}
@@ -309,8 +311,11 @@ ttk::style map TNotebook.Tab \\
-padding {selected {4.5p 3p 4.5p 1.5p}}
.CE
which are valid for the default value \fBnw\fP of the \fB\-tabposition\fP
-style option. Again, for a different tab position you will have to adapt
-the above settings accordingly.
+style option. For a \fBttk::notebook\fP style having a different tab position
+you will have to adapt the above settings accordingly. Again, the easiest way
+to do this is to invoke the library procedure \fBttk::configureNotebookStyle\fP
+with the style name as argument, after setting the style's \fB\-tabposition\fP
+option.
.RE
.PP
Some options are only available for specific themes.