Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FORM.KEYPREVIEW for Mouse?
Message
De
27/08/2001 09:29:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00549009
Message ID:
00549410
Vues:
13
>>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.

Thanks, Larry

I'm going to try a couple other approaches, also. If I find anything worth passing along, I'll do that.


Jay
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform