>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only