http://www.perlmonks.org?node_id=1014066


in reply to Re^9: Tkx g_bind to menu on listbox only for selected row
in thread Tkx g_bind to menu on listbox only for selected row

No good for me, as I need to call subs from the user's selection. Frustrating, as all the available documentation I've seen refers to 'the OSs native functions' for popping the menu down. I really don't want the user to have to remember to press 'Esc' to get rid of the menu!

Windows manages to do this with its own apps, why can't Perl?

Thanks a lot for all your help anyway!!! I've got it semi-working now but will leave it turned off by default, activatable by user option as an experiment until I find something better.

  • Comment on Re^10: Tkx g_bind to menu on listbox only for selected row

Replies are listed 'Best First'.
Re^11: Tkx g_bind to menu on listbox only for selected row
by Anonymous Monk on Jan 18, 2013 at 15:16 UTC

    No good for me, ...

    Well, that is what you get with tk+listbox+optionmenu,

    Tkx is 98% tcl/tk, so whatever choices those tcl guys made is what you have

    If you want different behaviour, you'll have to pick a different widget, or copy menu.tcl and edit out the grabs (and whatever else) until it does what you want

    Good luck