Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stubborn Caption Placement !
Message
From
22/01/2016 07:26:26
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01629113
Message ID:
01630069
Views:
84
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

I've had the same Problem.
You have to set the autosize = .t. property to .f. before you get the real width from the Label.
lblCaption.AutoSize=.t.
lblCaption.Caption = alltrim(m.lcCaption)
lblCaption.AutoSize=.f.
lnControlWidth = lblCaption.Width 
		
Jörg Schneider
Joerg.Schneider@SMARTCRM.de
SMARTCRM CRM powered by MS Visual FoxPro
SMARTCRM GmbH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform