Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Page class - Page Init() not firing.
Message
De
27/10/2008 17:12:04
 
 
À
27/10/2008 16:33:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01357491
Message ID:
01357509
Vues:
13
>>I have created a custom pageframe class, with custom page classes, but the Init() event of the Page classes is not firing.
>
>I've just learned a little bit more.... Init() code in the class is firing. It's the Init() code that I place in the .SCX file that is getting ignored. I learned about that after some more searching (I did search this out before and after I posted). I found this link to explain it... http://msdn.microsoft.com/en-us/library/ae2k913t(VS.80).aspx
>
>
>That's fine. So, how do I work around this?
>
>At the time the class Init() runs, even the custom properties do not habe their .SCX-applied values in place yet. I need to do some work based on those customer properties.
>
>Can I re-call the Init() even from the PageFrame or Form init()?

Matt -

I always use a custom method called InitContainer() which i then call from the forms Init()

frmMyForm.pgfTest.Page1.cntCustom.InitContainer()

and I have the InitContainer method defined in the base class that i use for the container.

HTH - Carsten
Carsten M. Thode
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform