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


In reply to Re^5: A click and hold button (Tk::bind Tk::Menu) by Anonymous Monk
in thread A click and hold button by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.