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
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.
2 matches
Mail list logo