From a063dba9f5ccd8490ec5c1e1f14745b2f6ba22fa Mon Sep 17 00:00:00 2001 From: bll Date: Sat, 7 Apr 2018 22:31:27 +0000 Subject: draft 5: all but treeview should be complete. --- doc/ttk_combobox.n | 25 ++++++++++++++++++++++--- doc/ttk_label.n | 19 +++++++++++++++++++ doc/ttk_labelframe.n | 40 ++++++++++++++++++++++++++++++++++++++++ doc/ttk_menubutton.n | 27 +++++++++++++++++++++++++++ doc/ttk_notebook.n | 47 +++++++++++++++++++++++++++++++++++++++++++++++ doc/ttk_panedwindow.n | 35 +++++++++++++++++++++++++++++++++++ doc/ttk_progressbar.n | 25 +++++++++++++++++++++++++ doc/ttk_radiobutton.n | 32 ++++++++++++++++++++++++++++++++ doc/ttk_scale.n | 29 +++++++++++++++++++++++++++++ doc/ttk_scrollbar.n | 27 +++++++++++++++++++++++++++ doc/ttk_spinbox.n | 2 +- 11 files changed, 304 insertions(+), 4 deletions(-) diff --git a/doc/ttk_combobox.n b/doc/ttk_combobox.n index 06eee0f..41eafed 100644 --- a/doc/ttk_combobox.n +++ b/doc/ttk_combobox.n @@ -115,14 +115,19 @@ this event is delivered after the listbox is unposted. The class name for a \fBttk::combobox\fP is \fBTCombobox\fP. 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, readonly. +Dynamic states: disabled, focus, pressed, readonly. .PP \fBTCombobox\fP styling options configurable with \fBttk::style\fP are: .PP +\fB-arrowcolor\fP +.br \fB-background\fP .br +\fB-focusfill\fP +.br \fB-foreground\fP .br \fB-fieldbackground\fP @@ -131,6 +136,12 @@ are: Can only be changed when using non-native and non-graphical themes. .RE .br +\fB-insertwidth\fP +.br +\fB-padding\fP +.br +\fB-postoffset\fP +.br \fB-selectbackground\fP .br .RS @@ -156,10 +167,18 @@ option add *TCombobox*Listbox.selectForeground \fIcolor\fP option add *TCombobox*Listbox.font \fIfont\fP .PP To set the font size for a specific listbox (subject to future change): -.PP +.CS set popdown [ttk::combobox::PopdownWindow .mycombobox] -.br $popdown.f.l configure -font namedfont +.CE +.PP +\fBComboboxPopdownFrame\fP +styling options configurable with \fBttk::style\fP +are: +.PP +\fB-borderwidth\fP +.br +\fB-relief\fP .PP Some options are only available for specific themes. .PP diff --git a/doc/ttk_label.n b/doc/ttk_label.n index c19641e..8b345aa 100644 --- a/doc/ttk_label.n +++ b/doc/ttk_label.n @@ -63,6 +63,25 @@ than the specified value. Supports the standard widget commands \fBconfigure\fR, \fBcget\fR, \fBidentify\fR, \fBinstate\fR, and \fBstate\fR; see \fIttk::widget(n)\fR. +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::label\fP is \fBTLabel\fP. +.PP +Dynamic states: disabled, readonly. +.PP +\fBTLabel\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-foreground\fP +.br +\fB-font\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), label(n) '\" Local Variables: diff --git a/doc/ttk_labelframe.n b/doc/ttk_labelframe.n index 4c2c8d5..53ef6c3 100644 --- a/doc/ttk_labelframe.n +++ b/doc/ttk_labelframe.n @@ -65,6 +65,46 @@ If specified, the widget's requested height in pixels. Supports the standard widget commands \fBconfigure\fR, \fBcget\fR, \fBidentify\fR, \fBinstate\fR, and \fBstate\fR; see \fIttk::widget(n)\fR. +.SH "STYLING OPTIONS" +.PP +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. +.PP +\fBTLabelframe\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-bordercolor\fP +.br +\fB-borderwidth\fP +.br +\fB-darkcolor\fP +.br +\fB-labeloutside\fP +.br +\fB-labelmargins\fP +.br +\fB-lightcolor\fP +.br +\fB-relief\fP +.PP +\fBTLabelframe.Label\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-font\fP +.br +\fB-foreground\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), ttk::frame(n), labelframe(n) .SH "KEYWORDS" diff --git a/doc/ttk_menubutton.n b/doc/ttk_menubutton.n index 698bd0c..68c8889 100644 --- a/doc/ttk_menubutton.n +++ b/doc/ttk_menubutton.n @@ -45,6 +45,33 @@ methods. No other widget methods are used. .PP \fBTtk::menubutton\fR widgets support the \fBToolbutton\fR style in all standard themes, which is useful for creating widgets for toolbars. +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::menubutton\fP is \fBTMenubutton\fP. +.PP +Dynamic states: active, disabled, readonly. +.PP +\fBTMenubutton\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-arrowsize\fP +.br +\fB-background\fP +.br +\fB-foreground\fP +.br +\fB-font\fP +.br +\fB-padding\fP +.br +\fB-relief\fP +.br +\fB-width\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), menu(n), menubutton(n) .SH "KEYWORDS" diff --git a/doc/ttk_notebook.n b/doc/ttk_notebook.n index e2ae137..2d6cf4b 100644 --- a/doc/ttk_notebook.n +++ b/doc/ttk_notebook.n @@ -208,6 +208,53 @@ pack [\fBttk::notebook\fR .nb] \&.nb select .nb.f2 ttk::notebook::enableTraversal .nb .CE +.SH "STYLING OPTIONS" +.PP +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 +.PP +\fBTNotebook\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-darkcolor\fP +.br +\fB-expand\fP +.br +.RS +-expand is a padding value. +.RE +.br +\fB-lightcolor\fP +.br +\fB-foreground\fP +.br +\fB-padding\fP +.br +\fB-tabmargins\fP +.br +\fB-tabposition\fP +.PP +\fBTNotebook.Tab\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-bordercolor\fP +.br +\fB-font\fP +.br +\fB-foreground\fP +.br +\fB-padding\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), grid(n) .SH "KEYWORDS" diff --git a/doc/ttk_panedwindow.n b/doc/ttk_panedwindow.n index 2488316..3e35cba 100644 --- a/doc/ttk_panedwindow.n +++ b/doc/ttk_panedwindow.n @@ -120,6 +120,41 @@ The panedwindow widget generates an \fB<>\fR virtual event on LeaveNotify/NotifyInferior events, because Tk does not execute binding scripts for events when the pointer crosses from a parent to a child. The panedwindow widget needs to know when that happens. +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::panedwindow\fP is \fBTPanedwindow\fP. The +sash has a class name of \fBSash\fP. +.PP +\fBTPanedwindow\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.PP +\fBSash\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-bordercolor\fP +.br +\fB-gripcount\fP +.br +\fB-handlepad\fP +.br +\fB-handlesize\fP +.br +\fB-lightcolor\fP +.br +\fB-sashpad\fP +.br +\fB-sashrelief\fP +.br +\fB-sashthickness\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), ttk::notebook(n), panedwindow(n) '\" Local Variables: diff --git a/doc/ttk_progressbar.n b/doc/ttk_progressbar.n index 96977a2..2e88e8e 100644 --- a/doc/ttk_progressbar.n +++ b/doc/ttk_progressbar.n @@ -86,6 +86,31 @@ Increments the \fB\-value\fR by \fIamount\fR. \fIpathName \fBstop\fR Stop autoincrement mode: cancels any recurring timer event initiated by \fIpathName \fBstart\fR. +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::progressbar\fP is \fBTProgressbar\fP. +.PP +\fBTProgressbar\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-bordercolor\fP +.br +\fB-darkcolor\fP +.br +\fB-lightcolor\fP +.br +\fB-maxphase\fP +.br +\fB-period\fP +.br +\fB-troughcolor\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n) '\" Local Variables: diff --git a/doc/ttk_radiobutton.n b/doc/ttk_radiobutton.n index 5b4dcce..7424e27 100644 --- a/doc/ttk_radiobutton.n +++ b/doc/ttk_radiobutton.n @@ -65,6 +65,38 @@ selection.) .PP \fBTtk::radiobutton\fR widgets support the \fBToolbutton\fR style in all standard themes, which is useful for creating widgets for toolbars. +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::radiobutton\fP is \fBTRadiobutton\fP. +.PP +Dynamic states: active, alternate, disabled, pressed, selected, readonly. +.PP +\fBTRadiobutton\fP styling options configurable with \fBttk::style\fP +are: +.PP +.br +\fB-background\fP +.br +\fB-foreground\fP +.br +\fB-indicatorbackground\fP +.br +\fB-indicatorcolor\fP +.br +\fB-indicatormargin\fP +.br +.RS +This is a padding value. +.RE +.br +\fB-indicatorrelief\fP +.br +\fB-padding\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), ttk::checkbutton(n), radiobutton(n) .SH "KEYWORDS" diff --git a/doc/ttk_scale.n b/doc/ttk_scale.n index b52f9ac..1aeb4c7 100644 --- a/doc/ttk_scale.n +++ b/doc/ttk_scale.n @@ -91,6 +91,35 @@ Modify or query the widget state; see \fIttk::widget(n)\fR. Get the coordinates corresponding to \fIvalue\fR, or the coordinates corresponding to the current value of the \fB\-value\fR option if \fIvalue\fR is omitted. +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::scale\fP is \fBTProgressbar\fP. +.PP +Dynamic states: active. +.PP +\fBTProgressbar\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-background\fP +.br +\fB-borderwidth\fP +.br +\fB-darkcolor\fP +.br +\fB-groovewidth\fP +.br +\fB-lightcolor\fP +.br +\fB-sliderwidth\fP +.br +\fB-troughcolor\fP +.br +\fB-troughrelief\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), scale(n) .SH KEYWORDS diff --git a/doc/ttk_scrollbar.n b/doc/ttk_scrollbar.n index 03d09f2..de92d86 100644 --- a/doc/ttk_scrollbar.n +++ b/doc/ttk_scrollbar.n @@ -154,6 +154,33 @@ grid $f.hsb \-row 1 \-column 0 \-sticky nsew grid columnconfigure $f 0 \-weight 1 grid rowconfigure $f 0 \-weight 1 .CE +.SH "STYLING OPTIONS" +.PP +The class name for a \fBttk::scrollbar\fP is \fBTScrollbar\fP. +.PP +Dynamic states: active, disabled. +.PP +\fBTScrollbar\fP styling options configurable with \fBttk::style\fP +are: +.PP +\fB-arrowcolor\fP +.br +\fB-background\fP +.br +\fB-bordercolor\fP +.br +\fB-darkcolor\fP +.br +\fB-foreground\fP +.br +\fB-lightcolor\fP +.br +\fB-troughcolor\fP +.PP +Some options are only available for specific themes. +.PP +See the \fBttk::style\fP manual page for information on how to configure +ttk styles. .SH "SEE ALSO" ttk::widget(n), scrollbar(n) .SH KEYWORDS diff --git a/doc/ttk_spinbox.n b/doc/ttk_spinbox.n index ec23f1b..0282af2 100644 --- a/doc/ttk_spinbox.n +++ b/doc/ttk_spinbox.n @@ -82,7 +82,7 @@ the user presses , and a \fB<>\fR virtual event when the user presses . .SH "STYLING OPTIONS" .PP -The class name for a \fBttk::button\fP is \fBTSpinbox\fP. +The class name for a \fBttk::spinbox\fP is \fBTSpinbox\fP. .PP Dynamic states: active, focus, disabled, readonly .PP -- cgit v0.12