Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug in Label - Wordwrap, AutoSize
Message
From
10/12/2001 14:57:22
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Bug in Label - Wordwrap, AutoSize
Miscellaneous
Thread ID:
00592305
Message ID:
00592305
Views:
55
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
Next
Reply
Map
View

Click here to load this message in the networking platform