in reply to Re: tk image map like button with hover effect
in thread tk image map like button with hover effect

This is great! I figured out how to bind the button to a sub --
$c->bind( $but1, '<ButtonPress>', sub { #$c->itemconfigure( $but1, -image => $image1); exit; });

Replies are listed 'Best First'.
Re^3: tk image map like button with hover effect
by zentara (Cardinal) on Jul 04, 2011 at 15:09 UTC
    You can also make an "action button" on a Tk canvas. Just make a slightly smaller copy of your active button, and bind ButtonPress and ButtonRelease to switch images, as was shown above. It will simulate a button press. For a pretty fancy way of doing this, using Tk::Zinc instead of the plain canvas, look at the following

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh