Re: WM_LBUTTON ?
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 14, 2001
- 513 views
Hi, can you fill me in a little more? > I was wondering if maybe someone would show me how to > stop a Mouse Button click, I'm guessing that there is a control that normally reacts to a mouse click but you want it to ignore it this time. Is that right? Is that a scrollbar, a pushbutton or what? You could try to trap it using onEvent handler. Some types of controls don't send all events to the application, so try this first but don't be too surprised if fails. -------------------- procedure eh(atom iMsg, atom wParam, atom lParam) if find(iMsg, {WM_LBUTTONDOWN, WM_LBUTTONUP}) then returnValue(0) -- signal we want to ignore this event. end if end procedure onEvent[myControl] = routine_id("eh") ------------------------- cheers, Derek Parnell Melbourne, Australia "To finish a job quickly, go slower."