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.
$list->g_bind("<3>", [ sub {my($x,$y) = @_; $listmenu->g_tk___popup($x,$y)}, Tkx::Ev("%X", "% +Y") ]);
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?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tkx g_bind to menu on listbox only for selected row
by Anonymous Monk on Jan 18, 2013 at 01:41 UTC | |
by Anonymous Monk on Jan 18, 2013 at 01:43 UTC | |
by v4169sgr (Sexton) on Jan 18, 2013 at 08:28 UTC | |
by Anonymous Monk on Jan 18, 2013 at 08:38 UTC | |
by v4169sgr (Sexton) on Jan 18, 2013 at 09:39 UTC | |
by Anonymous Monk on Jan 18, 2013 at 10:03 UTC | |
|