1. RE: RightDown event
- Posted by Joseph Semmel <jsemmel at yahoo.com> Aug 06, 2003
- 365 views
The Onmouse routine does not trap right clicks either. Pete Lomax wrote: > > > On Tue, 5 Aug 2003 19:20:06 +0000, Joseph Semmel <jsemmel at yahoo.com> > wrote: > > >I had a question on right mouse clicking. I saw an example program > >(ex20.exw) that uses a mouse procedure to trap right mouse clicks. This > >does not work on a program that uses a menu. Why does the OnClick > >routine not trap for right mouse clicks ? > w32HClick is the event triggered by left click, space when the focus > is on the button, or the Alt key if it has one. > To check for right clicks try w32HMouse. > > Pete >
2. RE: RightDown event
- Posted by Joseph Semmel <jsemmel at yahoo.com> Aug 06, 2003
- 379 views
That example works fine, my only question left is: Is there a way that the right click will work for listboxes, text boxes and push buttons ? Derek Parnell wrote: > > > On Wed, 06 Aug 2003 00:44:57 +0000 (08/06/03 10:44:57) > , Joseph Semmel <jsemmel at yahoo.com> wrote: > > > > > The Onmouse routine does not trap right clicks either. > > > > This is true. Microsoft has decided that a Right Button Click is not a > default (supported) event. I assume this because neither the API, Visual > > Basic or MFC has support built in for this. > > However, the example code I sent earlier might do. I can easily enahnce > > win32lib to support it too. > > -- > > cheers, > Derek Parnell >
3. RE: RightDown event
- Posted by Joseph Semmel <jsemmel at yahoo.com> Aug 08, 2003
- 388 views
I used the routine that Derek wrote for me and after the procedure I put a set handler line for each push button, and list box and I was able to right click with them. The only exception was the text box, apparently you can't overwrite that cut/paste menu. Dan Moyer wrote: > > > Joseph, > > There's a slightly complex way to right click on items in a list box in > "RunDemos.exw" which comes with Win32Lib. The routine that includes > doing > it is "List_onMouse", though there's setup stuff before it, look for > "right > click" & you should find it. A Getz created the idea for me. > > And now that I look at it, there's a simpler example called, reasonably > enough, "RtClick.exw" in the examples. And somehow, I forget how but it > might be easy to find, I made right click on some of the buttons at the > top > of RunDemos work, too. > > HTH, > Dan Moyer > ----- Original Message ----- > From: "Joseph Semmel" <jsemmel at yahoo.com> > To: "EUforum" <EUforum at topica.com> > Sent: Wednesday, August 06, 2003 11:06 AM > Subject: RE: RightDown event > > > > That example works fine, my only question left is: Is there a way that > > the right click will work for listboxes, text boxes and push buttons ? > > > > Derek Parnell wrote: > > > > > > > > > On Wed, 06 Aug 2003 00:44:57 +0000 (08/06/03 10:44:57) > > > , Joseph Semmel <jsemmel at yahoo.com> wrote: > > > > > > > > > > > The Onmouse routine does not trap right clicks either. > > > > > > > > > > This is true. Microsoft has decided that a Right Button Click is not a > > > default (supported) event. I assume this because neither the API, Visual > > > > > > Basic or MFC has support built in for this. > > > > > > However, the example code I sent earlier might do. I can easily enahnce > > > > > > win32lib to support it too. > > > > > > -- > > > > > > cheers, > > > Derek Parnell > > > > > > > TOPICA - Start your own email discussion group. FREE! > > >