Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_CUROBJ to ActiveControl
Message
De
06/01/1998 15:39:47
 
 
À
06/01/1998 15:18:18
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00069672
Message ID:
00069891
Vues:
53
>what is special with it is when you press dnarrow and call setfocus, focus is set to text2 and than normal (default) behaviour of DnArrow is executed. You should somewhat absorb it (nodefault) if you don't want it to happen. It is like with no keypress you are in text2 pressing dnarrow.
>In "do case" also you should use "nodefault" after "case" statement if you don't want the default behaviour of key.
>*keypress

>do case
> case nKeycode = 28 && F1
> ..
> thisform.oObject.setfocus && Than default for F1 fires (help)
> case nKeyCode = 122 && "z"
> nodefault && Char "z" absorbed
> thisform.oObject.setfocus && W/o nodefault "z" would be written in oObject.value (if applicable)
>...
>endcase

Just using nodefault does what I want so I guess I don't even need to use SetFocus - Right?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform