Re: Simulating a Right Click
John Warner <[email protected]> Thu, 24 Apr 2008 19:58:34 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Organization | House |
| Message-ID | <07a901c8a667$1b5cd490$52167db0$@com> |
Check the documentation for your touch screen, how does it react to the user touching the screen. In that event decide if you want to pop up your right click menu. John Warner > -----Original Message----- > From: Discussion forum for developers using Windows Forms to build apps > and controls [mailto:[email protected]] On > Behalf Of Bhatnagar, Amit > Sent: Thursday, April 24, 2008 7:35 PM > To: [email protected] > Subject: [DOTNET-WINFORMS] Simulating a Right Click > > 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. > Thank you.