Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Edit box doesn't work with CTRL-F if code in GotFocus()
Message
De
05/09/2003 07:44:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00826046
Message ID:
00826338
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Hi Mechelle.

After some experimenting, I finally figured out that it doesn't work if there is code in the GotFocus() event. Adding DODEFAULT() doesn't help. Is there any way around this?

I just tested this with one of my edit box subclasses. It works just fine if your sub-class has code in the GotFocus, but you have to wrap it like this:
*** Make sure the native VFP behavior happens first
EditBox::GotFocus()

*** Your custom code here

*** Suppress native VFP behavior here
NODEFAULT
Now, if there is code in the instance, you can just make sure that you issue a DODEFAULT() at the beginning and a NODEFAULT after your custom code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform