Simon,.
I can answer the second question. In the subroutine that captures the
event invoking the popup menu you can do this:
my($X, $Y) = Win32::GUI::GetCursorPos();
$MainWindow->TrackPopupMenu($PopupMenu->{ItemProp},$X, $Y);
In this case ItemProp is the name given to the popup menu.
I hope this helps.
Jonathan
-----------------------------------------------------------
Jonathan Southwick
[EMAIL PROTECTED]
Technical & Network Services
Allegheny College, Meadville, PA 16335
At 6/14/2001 02:48 PM, you wrote:
Dear fellow GUI fans,
Say I want have a right-mouse-click driven context pop-up menu in a
TreeView...
1. How to discover when the right-mouse-button is pressed and relate it to
a particular tree node? ...TreeView methods only seem to support left
clicking, or?
2. How to figure out the screen coordinates of the click in order to place
the pop-up menu?
Thanks,
Simon
Powered by the Email PIM - Info Select - www.miclog.com
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users