Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default value of a command button.
Message
De
22/01/2004 09:49:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Default value of a command button.
Divers
Thread ID:
00869474
Message ID:
00869474
Vues:
43
Hi all,

I was working on a bug for an app the other day involving the default value of a command button within a command group being automatically set to true upon gaining focus within a textbox. Now, this only occurred after clicking that button, it never occurs up until that point. The command group contains buttons that when clicked, opens other forms. This button does not however open an SCX form, but a form in a class. Code looks like this
SET CLASSLIB TO myclass ADDITIVE
ThisFormset.AddObject("frmForm, "cnForm")
ThisFormset.frmForm.Show()
RELEASE CLASSLIB myclass
My current workaround was to put code in the KeyPress event of the textbox to set the default of that button to .F. is the user hit enter.

Any ideas?

Thanks
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform