I dont have any preference whether the new menu is a normal or cascade or whatever...I do need it to appear where the mouse is clicked, however...In my real application I'm binding the right click to a button somewhere in that frame...when pointing at the button the right click brings up a context-sensitive menu ...so I bind it to *that* button to bring up its special menu...if somehow I can have it bring up a cascade that's fine too...but when I modify to have the menu include a cascade like :

$menu->add('separator'); $menu->add('command', -label => 'One', -command => \&item1); $menu->add('command', -label => 'Two', -command => \&item2); $menu->add('cascade', -label => 'Selections', );

it has the cascade item labeled "Selections" but holding down the button and dragging over it doesnt do what your cascade example does....can you modify yours somehow to have it create the cascade at the mouse x,y while holding down the mouse click and disappearing when release... matt

In reply to Re^2: tk menu commands dont work while button pressed by mpage
in thread tk menu commands dont work while button pressed by mpage

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.