Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AutoSize in run-time
Message
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00564476
Message ID:
00564485
Views:
20
This message has been marked as the solution to the initial question of the thread.
>Hi everyone,
>
>It seems to me, that AutoSize works only in design-time and not in run-time, when I change Label's caption. How can I make it work in run-time? How can I change width of label to be exact?
>
>Thanks a lot in advance.

When you are changing the width of a label either by autosizing it or changing the actual caption then setting the width property, you will not get the NEW width value until you set the Visible property of the label to true. I have had to incorporate this workaround in the Load of my form for setting multi-language values of captions. However, since this is in the Load, the form is not yet visible so I do not have ugly label flashing on the screen.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform