Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to set property of controls in INIT of the form?
Message
De
22/02/2010 14:15:45
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01450293
Message ID:
01450297
Vues:
73
>>I want to find a way to change value of a property on a bunch of controls on a form from the INIT method of the form. This way, when each control's INIT fires, the value of the property is already set. But when ran a little test I see that the INIT of controls fires first and then the INIT of the form. Any suggestions? TIA.
>
>Init of the forms' controls fires before the Init of the form (from the inner most to the top most container). The only way to fire Init of the control after the Init of the form would be by adding this control in run-time in form's Init.
>
>In order to set some property of many objects you can use SetAll method of the form.

Thank you for your suggestions but neither one will work for me. Maybe there is no simple solution to what I am looking for.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform