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
12/12/1999 08:30:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00302272
Message ID:
00302385
Views:
23
To add to what has been already said if you want the movements and resizing to be smooth wrap your code in a .LockScreen.
MyForm.LockScreen = .T.
Some code to move and resize objects
...
MyForm.LockScreen = .F.
>On my form, I have some captions.
>They are right-justified and their size is not fix.
>In the init of my form, I am loading the labels.captions
>
>Since the labels are right-justified, the new content of the labels is all screw up.
>I figure out that I could calculate the needed right position of the labels if I only knew how long is the current content and how long would be the new content in pixel. Is there a way to predict this according to the string, the size and the font ?
>
>
>Thanks
>eric
Previous
Reply
Map
View

Click here to load this message in the networking platform