[perl-win32-gui-users] TreeView... how to detect right-mouse click (and coords...)

2001-06-14 Thread Simon Hardy-Francis
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

Re: [perl-win32-gui-users] TreeView... how to detect right-mouse click (and coords...)

2001-06-14 Thread Jonathan Southwick
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.