Simulating a Right Click
"Bhatnagar, Amit" <[email protected]> Thu, 24 Apr 2008 17:35:05 -0600
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Hi All. I have a touch screen application where there is a need to perform a right click to expose context menus etc. The app's main point of interaction is a "toolbar" of buttons at the bottom of the screen (think Mac OSX dock, or Gnome/KDE panel, etc), so I imagine sticking a Right Click button down there. But how would this work? I imaging sending a WM_ message for right click, but if the user moves the cursor to the target of the right click, and then has to press a button on the toolbar, the cursor is no longer on the target and thus the right click message would happen on the Right Click button on the toolbar. Essentially what I am saying is that the cursor would move off the target object down to the toolbar button when the right click message would be sent. How can I have a button that I can press to perform a right click without having the cursor move away from the target object? The information contained in this e-mail message is PRIVATE. It may = contain confidential information and may be legally privileged. It is = intended for the exclusive use of the addressee(s). If you are not the = intended recipient, you are hereby notified that any dissemination, = distribution or reproduction of this communication is strictly = prohibited. If the intended recipient(s) cannot be reached or if a = transmission problem has occurred, please notify the sender immediately = by return e-mail and destroy all copies of this message.=20 Thank you.=20