Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No luck using FORM.ActiveControl
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00156203
Message ID:
00156647
Vues:
42
I am currently attempting this with an Edit Control. However, it appear that what ever object I try this with it fails.

I have tried _SCREEN.ActiveForm and I can get the name of the form in focus. Although, if I were to go a little further and issue a _SCREEN.ActiveForm.ActiveControl I never get a reference to the currently focused object.

As a work around, I've implemented something that Edward Pikman recommended. Eds approach was to create a property on the form to keep track of the last focused object, and in every object's GotFocus event, update that form property.

This is really weird.

As I said I am using VFP 06.00.8167.00
Juan L. Romero
gcandela@javanet.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform