Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I center a label on the form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00062470
Message ID:
00062627
Views:
33
>>I've always had labels behave strangely when Autosize was set to .T.. Can you humour me and try you old method with Autosize set to .F.?
>
>I can't, because the caption of the label is passed by parameter to the form.
>So I can't know the length of the caption until run time.

Sylvain, as another workaround, you could make the label width the width of the page (or centered on the page and wider than your widest label) and set the text alignment to Center. When you change the caption it would automatically be centered on the form.

Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform