Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine A Label's Height
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00557502
Message ID:
00557551
Views:
11
Larry,

Here's my code:


WITH ThisForm.lblTest

  .Caption = "This is a really,really long line of test text"
  .BorderStyle = 1 && For testing
  .Width = 75
  .AutoSize = .T.
  .Height = FONTMETRIC(1 , .FontName, .FontSize)

ENDWITH


All this did was extend the width of the label out to
the right.


The problem is the height. I dont know how many lines there are
going to be until AFTER the label resizes. I DO know the max width
the label can be though.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform