Ignore:
Timestamp:
Feb 1, 2010, 3:23:15 PM (15 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/gui/scripts/controls.tcl

    r1624 r1650  
    3838    protected method _controlValue {path {units ""}}
    3939    protected method _formatLabel {str}
    40     protected method _changeTabs {}
     40    protected method _changeTabs { index }
    4141    protected method _resize {}
    4242
     
    7171    set f [$itk_interior.sc contents frame]
    7272
    73     set _tabs [blt::tabset $f.tabs -borderwidth 0 -relief flat \
     73    set _tabs [blt::tabset $f.tabs -outerborderwidth 0 -outerrelief flat \
    7474        -side top -tearoff 0 -highlightthickness 0 \
    7575        -selectbackground $itk_option(-background) \
     
    496496            set _name2info($name-label) $label
    497497
    498             $_tabs insert end $label \
    499                 -activebackground $itk_option(-background)
    500 
     498            $_tabs insert end $label
    501499            incr gn
    502500        }
     
    510508        grid rowconfigure $_frame 0 -weight 1
    511509
    512         $_tabs select 0; _changeTabs
     510        _changeTabs 0
    513511      }
    514512
     
    695693# the groups.
    696694# ----------------------------------------------------------------------
    697 itcl::body Rappture::Controls::_changeTabs {} {
    698     set i [$_tabs index select]
     695itcl::body Rappture::Controls::_changeTabs { index } {
     696    if { $index == -1 } {
     697        set index [$_tabs index select]
     698    }
    699699    # we use _showing here instead of _controls because sometimes tabs
    700700    # are disabled, and the index of the choosen tab always matches
    701701    # _showing, even if tabs are disabled.
    702     set name [lindex $_showing $i]
     702    set name [lindex $_showing $index]
    703703    if {"" != $name} {
    704704        foreach w [grid slaves $_frame] {
Note: See TracChangeset for help on using the changeset viewer.