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 20:54:03
 
 
To
13/12/1999 16:35:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302272
Message ID:
00303111
Views:
30
>>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.

Also, if it even does not work in straightforward way, then Timer solution will always help.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform