Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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


Comment on Re^5: A click and hold button (Tk::bind Tk::Menu)
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047392]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-27 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls