Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Favio,
>When I pass parameters to a form , How can I see the values of the parameters in the event INIT of a control ?
>(in the only place that I see them is in INIT of the Form )
Correct. What you can do is create a private variable be fore you call the form, that will make the value available to the controls.
Other wise you will have to wait until the Forms INIT() to make your changes. IOW: Instead of:
*Controls.Init()
lparam cMode
this.caption = cMode
You need to do
Form.Init()
lparam cMode
This.Control.Caption = cMode
Along the same lines, some peole create a method called "AfterFormInit()" that they call in every control from the Form.Init() and pass the parameters at that time.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement