ron7 has asked for the wisdom of the Perl Monks concerning the following question:
The code that attaches the menu looks like this:
The get_text_line call will find the line in a scrolled text panel that the cursor is over (the $created_text variable), though that is not the problem as it seems to work in all cases. I've tried changing the button ID <3> to <2> for OSX with no difference!my $menu = $win->Menu(-tearoff=>0, -menuitems=>[ [qw/command Edit/, -command=>[\&load_in_editor, $created_text, \ +$hold_line]], ]); $created_text->menu($menu); $created_text->bind('<3>', [\&get_text_line, Ev('X'), Ev('Y'), \$h +old_line]);
Anyone have OSX/Tk experience?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk and right-mouse popup menus under OSX
by lamprecht (Friar) on Feb 14, 2011 at 08:24 UTC | |
by ron7 (Beadle) on Feb 14, 2011 at 22:26 UTC | |
|
Re: Tk and right-mouse popup menus under OSX
by vkon (Curate) on Feb 14, 2011 at 07:23 UTC | |
by Anonymous Monk on Feb 14, 2011 at 07:59 UTC | |
by ron7 (Beadle) on Feb 14, 2011 at 08:19 UTC | |
by ron7 (Beadle) on Feb 15, 2011 at 20:46 UTC | |
by vkon (Curate) on Feb 15, 2011 at 20:56 UTC |