Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Valid Event does not fire when I click outside of the ob
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00119392
Message ID:
00133890
Vues:
28
Brenda,

Finding a generic way of addressing the activecontrol when pageframes and grids are involved without using a framework that already knows the activecontrol is not a pretty sight.

Your best bet is to use a form class where you can add a method to do this for you. Then from your toolbar or menu you can _screen.activeForm.UpdateBuffers() or whatever name you give the method.

In that method you would need to read the currently active control and determine if it is a page or a grid or what and appropriately deal with it. The form class that I have uses a property of the form named LastControl. Every control's GotFocus sets a self reference to THISFORM.LastControl and the form's Destroy sets LastControl to NULL. So all I have to do in a toolbar is oApp.oForm.LastControl.SetFocus(). oApp is the application object, oForm is a property of teh application object that holds a reference to the current form. All fomrs are run by calling oApp.LaunchForm so that app can track teh forms. Every form reports in to oApp on Activate, Deactivate, and destroy.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform