Skip to content

Commit 3bb0b12

Browse files
author
csaba
committed
* ../../examples/scrollutil/ScrolledFrm*.tcl: Updated.
1 parent 1fab9d7 commit 3bb0b12

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

examples/scrollutil/ScrolledFrmContent.tcl

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ grid $sa -row $row -rowspan 6 -column 0 -sticky w -padx {10 0} -pady {5 0}
5454
#
5555
set l [ttk::label $cf.l$row -text "Release:"]
5656
grid $l -row $row -column 1 -sticky w -padx {10 0} -pady {5 0}
57-
ttk::style map TCombobox -fieldbackground {readonly white}
57+
ttk::style map TCombobox -fieldbackground \
58+
[list {readonly focus} lightYellow readonly white]
5859
set cb [ttk::combobox $cf.cb -state readonly -width 14]
5960
grid $cb -row $row -column 2 -sticky w -padx {5 10} -pady {5 0}
6061

@@ -284,13 +285,12 @@ proc configTablelist {} {
284285
-scrollmargin 0 -hscrollmode none]
285286

286287
#
287-
# Unfortunately, the iwidgets::scrolledframe widget has
288-
# no built-in equivalents of the BWidget ScrollableFrame
289-
# widget options -constrainedwidth and -yscrollincrement
288+
# Unfortunately, the iwidgets::scrolledframe widget has no built-in
289+
# equivalent of the BWidget ScrollableFrame option -constrainedwidth:
290290
#
291291
set canvas [$sf component canvas]
292292
bind $canvas <Configure> {
293-
%W itemconfigure frameTag -width [winfo width %W]
293+
%W itemconfigure frameTag -width %w
294294
}
295295
$canvas configure -background $::bg
296296

examples/scrollutil/ScrolledFrmDemo1.tcl

+3-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ foreach country $countryList capital $capitalList {
6868

6969
set capitalList [lsort $capitalList]
7070

71-
ttk::style map TCombobox -fieldbackground {readonly white}
72-
set btnStyle [expr {$::ttk::currentTheme eq "aqua" ? "TButton" : "Toolbutton"}]
71+
ttk::style map TCombobox -fieldbackground \
72+
[list {readonly focus} lightYellow readonly white]
73+
set btnStyle [expr {$ttk::currentTheme eq "aqua" ? "TButton" : "Toolbutton"}]
7374

7475
set row 0
7576
foreach country $countryList {

0 commit comments

Comments
 (0)