Tool tip show graphic

Jim Ault jimaultwins at yahoo.com
Wed Jun 1 19:52:27 EDT 2011


On Jun 1, 2011, at 4:22 PM, stephen barncard wrote:

> I came up with this test stack.
>
> go URL "http://fulton.barncard.com/stax/graphicInToolTip.rev"
>
>
> This comes pretty close. One could write some send in time  
> statements that
> could handle the initial delay, and a hide delay if the cursor stays  
> on the
> object after a while.
Stephen had too much fun making this :-)

One refinement is the
---- substack script
mousedown
    set the loc of this stack to globalLoc(the mouseLoc)

rather than
     set the loc of this stack to (the mouseLoc)

Bonus feature is to set the substack blendLevel to 40 so that is it  
semi transparent, if that makes it look better.

added handler to the substack script
on mouseLeave
       set the visible of stack "tipToolstack"  to "false"
end mouseLeave

-----------------thus this is the script
on mouseDown
    set the loc of this stack to globalLoc(the mouseLoc)
    set the blendlevel of this stack to 40
    pass mousedown
end mouseDown

on mouseLeave
       set the visible of stack "tipToolstack"  to "false"
end mouseLeave
---------- end script





Jim Ault
Las Vegas






More information about the use-livecode mailing list