Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FORM.KEYPREVIEW for Mouse?
Message
 
 
À
24/08/2001 17:21:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00549009
Message ID:
00549010
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform