Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in Label - Wordwrap, AutoSize
Message
From
10/12/2001 21:13:25
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
10/12/2001 15:34:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592305
Message ID:
00592497
Views:
17
Thanks for the confirmation Steve. I reported the issue to MicroSoft.

>Charlie,
>
>It crashes VFP 6 SP5 also...
>
>>I've been using code like this to know the height of the header in a grid. The idea is to set the width and caption, make the label visible (but not really) and note the height. I'm using version 07.00.0000.9262.
>>
>>_SCREEN.NEWOBJECT('x','label')
>>WITH _SCREEN.x
>>  .Left = -200   && Can't see it here.
>>  .Width = 30
>>  .FontName = "Arial"
>>  .FontSize = 9
>>  .Caption = "      5   Total"      && This text causes failure.
>>*   .Caption = "      5    Total"     && This text works fine.
>>   .Wordwrap = .T.
>>   .AutoSize = .T.
>>  .Visible = .T.
>>?  .Height
>>ENDWITH
>>_SCREEN.RemoveObject('x')
>>RETURN
>>
>>Does anyone see why this should fail so abruptly?
Charlie
Previous
Reply
Map
View

Click here to load this message in the networking platform