Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SelStart and edit control
Message
De
15/04/1999 14:24:51
 
 
À
15/04/1999 14:08:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00208285
Message ID:
00208697
Vues:
27
>I tried playing with NoDefault before with no success. Do you frequently use this particular trick to supress (fix ?) VFP default GUI behaviour ?

I feel, I should give you some explanation. Keypress event (and any other event) may have two parts: your own code (check Selstart in this case) and VFP internal code (move insertion point in this case). Your code fires first and internal code second, however your requirement is to check SelStart after insertion point moved (i.e. after internal code makes its job). Therefore, Dodefault() will do exactly this: moves insertion point, and then you get needed SelStart. However, if you leave things at this point, internal code will fire again and actually moves insertion point one more step (e.g. as result you may see that RightArrow will move Insertion point 2 characters to the right). So, NODEFAULT will prevent this extra step.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform