Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Label.AutoSize
Message
From
16/04/2008 14:11:29
 
 
To
16/04/2008 12:33:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01310962
Message ID:
01311245
Views:
24
* Method SetCaption
LPARAMETERS tcCaption
lcOldCaption = This.label1.caption ---> "Action Text"
lnOldWidth = This.label1.Width -------> 57
This.label1.Caption = tcCaption ------> "Update Chassis Information"
lnNewWidth = This.label1.Width -------> 57 ??????????
This.Width = This.Width + (lnNewWidth - lnOldWidth)


Try this instead:
LPARAMETERS tcCaption
lcOldCaption = This.label1.caption ---> "Action Text"
lnOldWidth = This.label1.Width -------> 57
This.label1.Caption = tcCaption ------> "Update Chassis Information"
This.label1.Autosize = .F.
lnNewWidth = This.label1.Width -------> 
This.label1.Autosize = .T.
This.Width = This.Width + (lnNewWidth  - lnOldWidth)
Previous
Reply
Map
View

Click here to load this message in the networking platform