Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FORM.KEYPREVIEW for Mouse?
Message
 
 
To
24/08/2001 17:21:37
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00549009
Message ID:
00549010
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>In certain situations, I want to trap mouseclicks at the form level before they are passed through to underlying controls.
>
>Research thus far has shown no mechanism.
>
>FORM.KEYPRESS doesn't trap for mouse events.
>INKEY() will map a mouse click to value 151, but a loop with INKEY() is not feasible.
>
>Searching on UT, surprisingly, revealed nothing about this specifically.
>
>Hacker's mentions a method of trapping user interactions through KEYPRESS, and notes that it doesn't work for mouse events.
>
>Am I mousing up the wrong tree?
>
> Jay

Jay,
You might be able to add a transparent shape to your form covering the whole thing. Then you could trap the mouse clicks and pass them along (using Nick N.'s technique described in the December 2000 issue of FPA) or swallow them up as needed.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform