Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to predict the size of a label.caption in pixel?
Message
From
13/12/1999 16:35:18
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302272
Message ID:
00302980
Views:
25
>Hi Ed,
>
>>You may better set Label.AutoSize=.T. and check Label.Width property after each changing of its caption.
>
>This won't always work, because VFP recalculates the width of a label when it displays it, not when you change the caption.
>
>Christof

It works in my experience. VFP apparently is smart enough to re-evaluate when you change the caption.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform