• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/tcl-102/tk/tk/library/ttk/

Lines Matching refs:cb

38     variable Values	;# Values($cb) is -listvariable of listbox widget
170 ## SelectEntry $cb $index --
173 proc ttk::combobox::SelectEntry {cb index} {
174 $cb current $index
175 $cb selection range 0 end
176 $cb icursor end
177 event generate $cb <<ComboboxSelected>> -when mark
182 proc ttk::combobox::Scroll {cb dir} {
183 $cb instate disabled { return }
184 set max [llength [$cb cget -values]]
185 set current [$cb current]
188 SelectEntry $cb $current
197 set cb [LBMaster $lb]
199 Unpost $cb
200 focus $cb
214 set cb [LBMaster $lb]
216 next { set newFocus [tk_focusNext $cb] }
217 prev { set newFocus [tk_focusPrev $cb] }
222 Unpost $cb
269 proc ttk::combobox::PopdownWindow {cb} {
272 if {![winfo exists $cb.popdown]} {
273 set poplevel [PopdownToplevel $cb.popdown]
279 -listvariable ttk::combobox::Values($cb) \
298 return $cb.popdown
334 proc ttk::combobox::ConfigureListbox {cb} {
337 set popdown [PopdownWindow $cb].f
338 set values [$cb cget -values]
339 set current [$cb current]
343 set Values($cb) $values
349 if {$height > [$cb cget -height]} {
350 set height [$cb cget -height]
365 proc ttk::combobox::PlacePopdown {cb popdown} {
366 set x [winfo rootx $cb]
367 set y [winfo rooty $cb]
368 set w [winfo width $cb]
369 set h [winfo height $cb]
384 ## Post $cb --
387 proc ttk::combobox::Post {cb} {
390 $cb instate disabled { return }
392 # ASSERT: ![$cb instate pressed]
396 uplevel #0 [$cb cget -postcommand]
398 set popdown [PopdownWindow $cb]
399 ConfigureListbox $cb
401 PlacePopdown $cb $popdown
404 x11 - win32 { wm transient $popdown [winfo toplevel $cb] }
414 ## Unpost $cb --
417 proc ttk::combobox::Unpost {cb} {
418 if {[winfo exists $cb.popdown]} {
419 wm withdraw $cb.popdown
421 grab release $cb.popdown ;# in case of stuck or unexpected grab [#1239190]
435 set cb [LBMaster $lb]
438 SelectEntry $cb [lindex $selection 0]