Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with a class
Message
From
06/04/1997 00:39:06
 
 
To
06/04/1997 00:29:48
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00027172
Message ID:
00027173
Views:
30
>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
Map
View

Click here to load this message in the networking platform