Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^5: A click and hold button (Tk::bind Tk::Menu)

by Anonymous Monk
on Aug 01, 2013 at 08:30 UTC ( #1047392=note: print w/replies, xml ) Need Help??

in reply to Re^4: A click and hold button (Tk::bind clickon clickoff)
in thread A click and hold button

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

You don't need to install a new perl version, its a module, you install it, it lets you interrogate Tk widgets. cpan -i Tk::WidgetDump or cpanp -i Tk::WidgetDump or  cpanm Tk::WidgetDump... How to install CPAN modules into ActivePerl, A Guide to Installing Modules, ... Yes, even you can use CPAN, A Guide to Installing Modules, Top 11 (GOOD) reasons not to use someone else's Modules, Top Seven (Bad) Reasons Not To Use Modules

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

Well, the logic is exactly the same as I already described, so I don't think I can add anything else

OTOH, this is beginning to sound more like a menu, so after looking at

widget - Demonstration of Perl/Tk widgets, Menus : 1. Menus and cascades (sub-menus), I noticed the menu-cascades exibit a delay . You might be able to learn some things about buttons if you look that the source, and that of Tk::Menu, about bind stuff and invoking and things like that

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047392]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-06-24 13:46 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.