Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine A Label's Height
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00557502
Message ID:
00557666
Vues:
7
Hi!

You require to set the Width property AFTER AutoSize = .T.
WITH ThisForm.lblTest

  .Caption = "This is a really,really long line of test text"
  .BorderStyle = 1 && For testing
  .WordWrap=.T.
  .AutoSize = .T.
  .Width = 75
  '.Height = FONTMETRIC(1 , .FontName, .FontSize) && here height is calculated automatically
  .AutoSize = .F. && now you can reset it back, if needed...

ENDWITH
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform