in reply to A click and hold button

that is any button where you use Tk::bind to bind clickon and clickoff, and in clickon you start a button timer

if clickoff fires before timer expires, then you run one

if timer expires before clickoff fires, you run two

clickon is called a press and clickoff is called a release

site:perlmonks.org tk bind button click press release

  • Comment on Re: A click and hold button (Tk::bind clickon clickoff)

Replies are listed 'Best First'.
Re^2: A click and hold button (Tk::bind clickon clickoff)
by Anonymous Monk on Jul 31, 2013 at 09:54 UTC
    Thanks. I played with the timers a bit, but I'm still missing on how to create the pop-up menu bellow the button.

        I don't have widgetdump on my release, and can't install new perl version.

        Can you please explain on how can I edit Menubutton to add click functionality and to only invoke the menu on click and hold.

        Thanks

        I don't have widgetdump on my release, and can't install new perl version.

        Can you please explain on how can I edit Menubutton to add click functionality and to only invoke the menu on click and hold. Thanks