Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trapping Mouse Clicks
Message
De
04/01/2010 07:44:53
 
 
À
03/01/2010 15:27:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01441595
Message ID:
01441884
Vues:
37
>>In a text box control I need to determine the user action that triggered either When or GotFocus events: was it TAB key, Left Mouse click or Right mouse click? LASTKEY() doesn't return mouse clicks, neither does KeyPress. When and GotFocus events fire before Click or RightClick; MouseDown doesn't fire at all in this scenario, so far as I can determine; and the MouseEnter nButton parameter returns zero, regardless of which mouse button is used.
>>
>>This seems so simple there must be some solution staring me in the face that I'm too fogged over with New Year's grog to see. Any ideas?
>
>
>* into the When
>?  IIF(TYPE('thisform.activecontrol')=='U','KEYTAB','MOUSE OR SETFOCUS')
>
You sort of lost me on this one, Fabio.
Ray Roper
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform