Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding to _Screen.ActiveForm
Message
De
25/03/2006 02:12:10
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
24/03/2006 16:58:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01107535
Message ID:
01107600
Vues:
20
>Hi, guys, got an interesting one here. I'm trying to adjust something everytime a different form is activated without having to put code in the form class. (Trying to do an observer kind of thing.) I figured I'd bind to changes to _SCREEN.ActiveForm, but it doesn't seem to work. Here's my test code:

Check my taskbar control, download #28888, it has detailed code to intercept form events using a different approach. Methods of interest are Init(), wm_createHandler() and addFormButton()

I used binding to windows events and I identified the form reference by looping through _screen.Forms collection

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform