Imported Tk 8.6.9
This commit is contained in:
@@ -110,6 +110,83 @@ The combobox widget generates a \fB<<ComboboxSelected>>\fR virtual event
|
||||
when the user selects an element from the list of values.
|
||||
If the selection action unposts the listbox,
|
||||
this event is delivered after the listbox is unposted.
|
||||
.SH "STYLING OPTIONS"
|
||||
.PP
|
||||
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: \fBdisabled\fP, \fBfocus\fP, \fBpressed\fP, \fBreadonly\fP.
|
||||
.PP
|
||||
\fBTCombobox\fP styling options configurable with \fBttk::style\fP
|
||||
are:
|
||||
.PP
|
||||
\fB\-arrowcolor\fP \fIcolor\fP
|
||||
.br
|
||||
\fB\-background\fP \fIcolor\fP
|
||||
.br
|
||||
\fB\-bordercolor\fP \fIcolor\fP
|
||||
.br
|
||||
\fB\-darkcolor\fP \fIcolor\fP
|
||||
.br
|
||||
\fB\-focusfill\fP \fIcolor\fP
|
||||
.br
|
||||
\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\-lightcolor\fP \fIcolor\fP
|
||||
.br
|
||||
\fB\-padding\fP \fIpadding\fP
|
||||
.br
|
||||
\fB\-postoffset\fP \fIpadding\fP
|
||||
.br
|
||||
\fB\-selectbackground\fP \fIcolor\fP
|
||||
.RS
|
||||
Text entry select background.
|
||||
.RE
|
||||
\fB\-selectforeground\fP \fIcolor\fP
|
||||
.RS
|
||||
Text entry select foreground.
|
||||
.RE
|
||||
.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
|
||||
.PP
|
||||
To configure a specific listbox (subject to future change):
|
||||
.CS
|
||||
set popdown [ttk::combobox::PopdownWindow .mycombobox]
|
||||
$popdown.f.l configure \-font \fIfont\fP
|
||||
.CE
|
||||
.PP
|
||||
\fBComboboxPopdownFrame\fP
|
||||
styling options configurable with \fBttk::style\fP
|
||||
are:
|
||||
.PP
|
||||
\fB\-borderwidth\fP \fIamount\fP
|
||||
.br
|
||||
\fB\-relief\fP \fIrelief\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::entry(n)
|
||||
.SH KEYWORDS
|
||||
|
||||
Reference in New Issue
Block a user