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:
00557637
Vues:
13
Kevin,
In addition to the code below, you need to add Wordwrap = .T. before setting the Width. Without it, the Width limitation doesn't hold.

HTH.

>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform