Changeset 1845 for branches/blt4/gui


Ignore:
Timestamp:
Jul 26, 2010 9:04:39 AM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

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

    r1789 r1845  
    3838    itk_option define -message message Message ""
    3939
    40     constructor {args} {
    41         # defined below
    42     }
     40    constructor {args} { # defined below }
    4341
    4442    public method show {where}
     
    106104# ----------------------------------------------------------------------
    107105itcl::body Rappture::Tooltip::show {where} {
    108 
    109106    set hull $itk_component(hull)
    110107    set signx "+"
     
    124121        error "bad position \"$where\": should be widget+x,y, or @x,y"
    125122    }
     123
    126124    if {[string index $itk_option(-message) 0] == "@"} {
    127125        set cmd [string range $itk_option(-message) 1 end]
     
    156154    # Make sure the tooltip doesn't go off screen.
    157155    #
    158    
    159156    update idletasks
    160 
    161157    if {$signx == "+"} {
    162158        if {$xpos+[winfo reqwidth $hull] > [winfo screenwidth $hull]} {
     
    208204        }
    209205    }
     206
    210207    #
    211208    # Finally, put it up.
     
    213210    wm geometry $hull $signx$xpos$signy$ypos
    214211    update
     212
    215213    wm deiconify $hull
    216214    raise $hull
Note: See TracChangeset for help on using the changeset viewer.