in reply to
Re^4: Tkx g_bind to menu on listbox only for selected row
in thread Tkx g_bind to menu on listbox only for selected row
%X and %Y are not %x and %y, you want %y
Thanks. I am sure you are right, but I need %X and %Y to get the position of the context menu right. How do I go about getting both sets of coordinates bound to the same Motion event?
my ( $X, $Y, $y, $lb ) = @_;
warn " $X,$Y,$y,$lb "
Tkx::Ev(qw' %X %Y %y '),
Thanks! That worked for me!
Final question: The menu persists after the user has moved the mouse away from the selected row. There does not seem to be anything like "g_tk___popdown()". How can I pop down the menu?
Use subroutines for code reuse
Master regular expressions
Write my GUIs with Perl
Abandon CGI in favor of some modern web framework
Put my code in modules
Create CPAN distributions
test and document my code as I write it
Write OOP with or without animal help
Finally switch to a modern Perl style
Create a killer application with Perl
Detoxify from Perl and PerlMonks
Choose another language because Perl is dead
Learn to program for mobile devices
Complete my secret world domination project
None, because the road to hell is paved with good intentions
Results (248 votes),