Ignore:
Timestamp:
Jul 10, 2013, 12:43:48 PM (11 years ago)
Author:
gah
Message:

fix drawing default coordinates, rewrite of xyresult scaling, sync with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3/gui/scripts/numberresult.tcl

    r3454 r3765  
    9595    protected method GetValue {dataobj {which both}}
    9696    protected method GetInfo {what dataobj {which both}}
     97    private method ResetLegend {}
    9798
    9899    private variable _dispatcher "" ;# dispatcher for !events
     
    243244    }
    244245    pack $itk_component(legend) -expand yes -fill both
    245     after idle [subst {
    246         update idletasks
    247         $itk_component(legend) reset
    248     }]
     246    after idle [itcl::code $this ResetLegend]
     247
    249248    # quick-and-dirty zoom functionality, for now...
    250249    Blt_ZoomStack $itk_component(plot)
     
    15641563    }
    15651564}
     1565
     1566#
     1567# ResetLegend --
     1568#
     1569itcl::body Rappture::NumberResult::ResetLegend {} {
     1570    set g $itk_component(plot)
     1571    update idletasks
     1572    $itk_component(legend) reset [$g element show]
     1573}
Note: See TracChangeset for help on using the changeset viewer.