diff options
Diffstat (limited to 'doc/ttk_notebook.n')
| -rw-r--r-- | doc/ttk_notebook.n | 15 |
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. |
