|Syntactic Confectionery Delight|
Tkx g_bind to menu on listbox only for selected rowby v4169sgr (Sexton)
|on Jan 17, 2013 at 13:15 UTC||Need Help??|
v4169sgr has asked for the
wisdom of the Perl Monks concerning the following question:
Hello! I use perl 5.10 on a winXP platform (Perl ActiveState), with tkx for my GUI.
I use listbox for displaying data strings, one string per row. I have implemented a context menu bound to the right button of the user's mouse, which works well.
I now wish to bind this menu to a mouse-over event.
My problem is that I don't want the menu to appear when the mouse pointer enters the entire listbox. I only want it to appear when the pointer enters the row or rows that the user has selected.
There does not seem to be an obvious way of doing this. How will I go about solving the problem?