Changeset 6136 for branches/blt4_trunk/gui/scripts/sidebarframe.tcl
- Timestamp:
- Mar 17, 2016, 7:56:48 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4_trunk/gui/scripts/sidebarframe.tcl
r5659 r6136 29 29 option add *SidebarFrame.sashCursor sb_h_double_arrow 30 30 31 itk::usual BltScrollset { 32 #empty 33 } 34 itk::usual BltTkFrame { 35 #empty 36 } 37 38 31 39 itcl::class Rappture::SidebarFrame { 32 40 inherit itk::Widget … … 56 64 protected method _sash {op x} 57 65 protected method _fixLayout {args} 58 protected method TabIndex { which } 66 67 private method TabIndex { which } 59 68 60 69 private variable _dispatcher "" ;# dispatcher for !events … … 173 182 # 174 183 itk_component add area { 175 Rappture::Scroller $itk_component(sidebar).area \ 176 -xscrollmode auto -yscrollmode auto \ 177 -highlightthickness 0 178 } 179 $itk_component(area) contents frame 184 blt::tk::frame $itk_component(sidebar).area 185 } 180 186 181 187 itk_component add controlbar { … … 207 213 blt::tabset $itk_component(controlbar).tabs \ 208 214 -highlightthickness 0 -tearoff 0 -side left \ 209 -bd 0 -gap 0 -tabborderwidth 1\210 -outerpad 1215 -bd 1 -gap 1 -outerborderwidth 0 \ 216 -outerpad 0 -justify center 211 217 } { 212 218 keep -background -cursor … … 214 220 rename -highlightbackground -controlbackground controlBackground \ 215 221 Background 216 rename - background-controlbackground controlBackground \222 rename -troughcolor -controlbackground controlBackground \ 217 223 Background 218 224 } … … 241 247 } 242 248 243 set f [$itk_component(area) contents]249 set f $itk_component(area) 244 250 set pname "panel[incr _counter]" 245 251 itk_component add $pname { … … 249 255 $itk_component(tabs) insert $pos $pname \ 250 256 -image $panel(-icon) -text "" -padx 0 -pady 0 \ 251 -command [itcl::code $this _toggleTab $pname]257 -command [itcl::code $this _toggleTab] 252 258 253 259 set _title2panel($panel(-title)) $pname … … 365 371 $_dispatcher event -idle !layout 366 372 } 367 set n [$itk_component(tabs) index -name $pname] 368 $itk_component(tabs) select $n 373 $itk_component(tabs) select $which 369 374 370 375 $itk_component(title) configure -text $_panels($pname-title) 371 376 372 set f [$itk_component(area) contents]377 set f $itk_component(area) 373 378 foreach w [pack slaves $f] { 374 379 pack forget $w … … 497 502 pop open 498 503 select $which 499 } elseif {[$itk_component(tabs) index -name $_selected] 500 == [$itk_component(tabs) index -name $which]} { 504 } elseif {[$itk_component(tabs) index $_selected] == $which} { 501 505 pop close 502 506 } else {
Note: See TracChangeset
for help on using the changeset viewer.