Re: Can get mouse procedure and handler to work!!!
- Posted by DerekParnell (admin) May 27, 2010
- 1337 views
This is driving me crazyI am newbie trying to learn by doing. I modified the following code in sample exw demo richedit2.exw demo. The code works (popup activates)with the RightDown mouse action but will not work with the leftdown action. In fact I can't make any of the following respond!
The 'edit' controls capture the left button event before your app gets to see it. They do this so they can move the cursor to where ever you clicked in the control. It would be a bad idea to break the expected UI behavior by making the left button activate a popup menu. A better way is to use the right button in conjunction with one of the 'control' keys such as 'SHIFT' or 'CTRL'.
Read the docs for the 'attachPopup' routine in the Win32lib for details.