Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find the shortkey and the lastkey value?
Message
De
03/12/2005 20:12:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01074037
Message ID:
01074675
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>>Nadya,
>>
>>How about this:
>>
>>oActive = ThisForm.ActiveControl
>>if (vartype(m.loObject) = "O") or (vartype( m.oActive ) = 'O')
>>   llReturn = (inlist(lower(justext(sys(1272, m.loObject))),"cmdcancel","cmdclose") and mdown()) OR ;
>>      inlist(lower(m.oActive.Name),"cmdcancel","cmdclose")
>>else
>>   llReturn = .f.
>>endif
>>
>>
>>I think, you don't even have to use AMOUSEOBJ(). Use ActiveControl object is enough. But I don't know, just in case <bg>
>>
>>HTH
>
>This can work as well. It doesn't answer the thread question, though.


Yes it doesn't, sorry. I just thought that it would be easier <g>.
Anyway, I think you can bind to windows messages (WM_SYSCHAR) to get the shortcut key.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardaccelerators/keyboardacceleratorreference/keyboardacceleratormessages/wm_syschar.asp
Herman
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform