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:
00062556
Views:
33
>This works for me. Where do you have this code. I put it in the activate of the form.

I put it in the Init(), since it will not move afterward.

My problem is that the text isn't centered on the form.
I noticed a strange behaviour: in design mode, when I enter the text in the caption field manually, the width of the label is 54.
If I put WAIT WINDOW Str(THISFORM.lblMessage.Width) after initializing the field with the same text, it give Width = 40.
So that's why the text isn't centered.
My question now: how come the width property at run time return a false information?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform