Changeset 1216
- Timestamp:
- Nov 14, 2008 12:19:10 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/controls.tcl
r786 r1216 47 47 private variable _dispatcher "" ;# dispatcher for !events 48 48 private variable _controls "" ;# list of known controls 49 private variable _showing "" ;# list of enabled (showing) controls 49 50 private variable _name2info ;# maps control name => info 50 51 private variable _scheme "" ;# layout scheme (tabs/hlabels) … … 446 447 } 447 448 449 # store the showing tabs in the object so it can be used in _changeTabs 450 set _showing $showing 451 448 452 # 449 453 # Decide on a layout scheme: … … 689 693 itcl::body Rappture::Controls::_changeTabs {} { 690 694 set i [$_tabs index select] 691 set name [lindex $_controls $i] 695 # we use _showing here instead of _controls because sometimes tabs 696 # are disabled, and the index of the choosen tab always matches 697 # _showing, even if tabs are disabled. 698 set name [lindex $_showing $i] 692 699 if {"" != $name} { 693 700 foreach w [grid slaves $_frame] {
Note: See TracChangeset
for help on using the changeset viewer.