>I built a class which is given me a weird problem.
>
>During the Init() of the form, I change the Caption of a label property.
>
>ThisForm.MyLabel.Caption='Michel Fournier'
>
>Then I make sure the caption has been made.
>
>WAIT WINDOW ThisForm.MyLabel.Caption
>
>And, the system gives me the value I stored.
>
>Now, I need to know the width of that label, so I do this.
>
>WAIT WINDOW ThisForm.MyLabel.Width
>
>And, it gives me 24, which was the width before I changed it.
>
>I have other objects which rely on this width so everything is all mixed up because the width returned by the system is not correct.
>
>While the form is on the screen, if I show the width, it will be ok. The problem is only during the Init().
>
>Any idea?
Do you have AutoSize=.t. for that label?
Vlad
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