Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement