Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find the shortkey and the lastkey value?
Message
De
02/12/2005 04:17:36
 
 
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:
01074060
Vues:
13
>Hi everybody,
>
>Here is the code I have in CancelValidation method:
>
>********************************************************************
>*  Description.......: CancelValidation
>*  Calling Samples...:
>*  Parameter List....:
>*  Created by........: ideas by John Koziol /Cetin Basoz
>*  Modified by.......: NN
>********************************************************************
>local llReturn, loObject, laMouseObj[1]
>amouseobj(laMouseObj,1)
>*loObject = SYS(1270) && Object under mouse
>loObject = laMouseObj[1,1]

llReturn = vartype(m.loObject) == "O" AND inlist(lower(m.loObject.Name),"cmdcancel","cmdclose") and mdown()

>
>return m.llReturn or lastkey()= 46 or thisform.releasetype = 1 && Alt+C (shortcut for Cancel)
>
>The inlist I added a minute ago, before I forgot about cmdClose button. Now, I want to be able to find the hotkey for this button to include it into the OR condition. I actually know that it's "l" in our system, but what if the form doesn't have a Close button and L stands for something else? It looks like this problem could not be solved, but may be you have some ideas?
>
>Thanks in advance.
=  LEFT(STREXTRACT(m.loObject.caption,"\<"),1)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform