Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why doesn't the init event work?
Message
De
03/05/2005 05:10:41
 
 
À
02/05/2005 07:03:45
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01009153
Message ID:
01010404
Vues:
27
>>Did you verify that third button is based on the member class ?
>
>I tried that too. He right. Vfp don't run init event more button than implemented in buttongroup class. I think so it's might a bug.
>
>but take care of a point. member classes init event works, option button's init events don't works in form.

This is by ( bad ) design.
Help:

Member Classes (Visual FoxPro)
Note:  
On an .scx form, if you add instantiation code to the member class's Init event, 
Visual FoxPro disregards that code and only the Init code for the member class definition runs.
However, with visual class library (.vcx) forms, Visual FoxPro creates a true subclass.
You can safely add instantiation code for other events such as Click. 
Another scx's problem is on the memberclass object's Name,
- at Init time, the name is not assigned.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform