Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate width of the caption
Message
 
 
À
14/12/2018 09:44:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01664474
Message ID:
01664478
Vues:
61
>>Hi,
>>
>>Simplified example.
>>I have a check box on a form. The caption of the check box could change (it is data driven). And if the caption is longer than what I set at design time, I want to widen the form. Question: how do you calculate the width or length of a string?
>>
>>For example, default caption of a check box: "Company". And it may change (at run-time) to being "Company Name". I need to calculate by how much to increase the width when the caption is longer.
>>
>>TIA
>
>http://doughennig.blogspot.com/2006/04/forget-txtwidth-use-gdipmeasurestring.html

Thank you!
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform