Changeset 439 for trunk/gui


Ignore:
Timestamp:
May 16, 2006, 8:59:50 PM (18 years ago)
Author:
mmc
Message:

Fixed a bug in syncing values within device editors embedded within
control panels. The "Simulate" button wasn't highlighting properly
when a value was changed.

Fixed a problem with enable/disable and separator objects.

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/controls.tcl

    r438 r439  
    422422                lappend showing $name
    423423                if {$show} {
    424                     $vwidget configure -state normal
    425                     if {$lwidget != ""} {
     424                    if {[winfo exists $vwidget]} {
     425                        $vwidget configure -state normal
     426                    }
     427                    if {[winfo exists $lwidget]} {
    426428                        $lwidget configure -foreground \
    427429                            [lindex [$lwidget configure -foreground] 3]
    428430                    }
    429431                } else {
    430                     $vwidget configure -state disabled
    431                     if {$lwidget != ""} {
     432                    if {[winfo exists $vwidget]} {
     433                        $vwidget configure -state disabled
     434                    }
     435                    if {[winfo exists $lwidget]} {
    432436                        $lwidget configure -foreground gray
    433437                    }
  • trunk/gui/scripts/deviceEditor.tcl

    r438 r439  
    9191
    9292    } elseif {[llength $args] == 0} {
    93         # querying -- nothing to do here
     93        sync  ;# querying -- must sync controls with the value
    9494    } else {
    9595        error "wrong # args: should be \"value ?-check? ?newval?\""
Note: See TracChangeset for help on using the changeset viewer.