Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label not changing width
Message
From
04/10/2001 05:39:04
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Label not changing width
Miscellaneous
Thread ID:
00564006
Message ID:
00564006
Views:
45
Hi

I am trying to add a Label to _SCREEN and then centering it, but when I go to center the Label, it's width is incorrect.

ie
_Screen.NewObject("lblTitle", "Label")

WITH _Screen.lblTitle
     .Caption = "Application Title Here"
     .FontSize = 16
     .AutoSize = .T.
     .Left = (_Screen.Width / 2) - (.Width / 2)
     .Height = (_Screen.Height / 2) - (.Height / 2)
     .Visible = .T.
ENDWITH
When I get to the
.Left
part of the program, the width is incorrect on the Label, it seems that only when it's made visible it will change.

Is there a way around it - by the way this happens on every label, not just labels on the _Screen.

Any ideas?
Thanks
Kev
Next
Reply
Map
View

Click here to load this message in the networking platform