Changeset 4165


Ignore:
Timestamp:
Feb 1, 2014, 7:16:57 PM (6 years ago)
Author:
ldelgass
Message:

Fixes for legend background color in flowvisviewer. Still has bugs with
transfer function editor and legend label color.

File:
1 edited

Legend:

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

    r4163 r4165  
    352352    set _image(legend) [image create photo]
    353353    itk_component add legend {
    354         canvas $itk_component(plotarea).legend \
    355             -height 50 -highlightthickness 0 -background black
     354        canvas $itk_component(plotarea).legend -height 50 -highlightthickness 0
    356355    } {
    357356        usual
     
    10441043    set h [winfo height $c]
    10451044    set lx 10
    1046     # FIXME:  I don't know what I have to do this for the 2D flow
    1047     #         example.  Otherwise the canvas background is white.
    1048     #         I'll get to this when we add background changes into
    1049     #         nanvis.
    1050     $c configure -background black
    10511045    set ly [expr {$h - 1}]
    1052     if {"" == [$c find withtag transfunc]} {
     1046    if {"" == [$c find withtag colorbar]} {
    10531047        $c create image 10 10 -anchor nw \
    1054             -image $_image(legend) -tags transfunc
     1048            -image $_image(legend) -tags colorbar
    10551049        $c create text $lx $ly -anchor sw \
    10561050            -fill $itk_option(-plotforeground) -tags "limits vmin"
    10571051        $c create text [expr {$w-$lx}] $ly -anchor se \
    10581052            -fill $itk_option(-plotforeground) -tags "limits vmax"
    1059         $c lower transfunc
    1060         $c bind transfunc <ButtonRelease-1> \
    1061             [itcl::code $this AddIsoMarker %x %y]
     1053        $c lower colorbar
     1054        $c bind colorbar <ButtonRelease-1> [itcl::code $this AddIsoMarker %x %y]
    10621055    }
    10631056    # Display the markers used by the active transfer function.
Note: See TracChangeset for help on using the changeset viewer.