Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining optimum height of textbox
Message
De
21/06/2005 16:07:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Determining optimum height of textbox
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01025266
Message ID:
01025266
Vues:
62
I would like to determine the optimum height for a textbox with a specific font name/font size. IntegralHeight seems like a solution, but I want to vertically center my textbox in its parent container.

When you use IntegralHeight, the textbox resizes with an optimum height,

BUT (there's always a but, huh?!) ... IntegralHeight does NOT update the textbox's Height property so I have no idea how tall my textbox really is and thus I have no way to determine how to vertically center it within its parent.

From VFP 9 help on IntegralHeight


For a TextBox, set IntergralHeight to true (.T.) to ensure that the control automatically adjusts its height when its FontSize property is changed.

When the IntegralHeight property is set to true (.T.), the value of the Height property might not match the actual height of the control.


Any suggestions on how I can set optimum height INDEPENDENT of IntegralHeight or on how I can get the ACTUAL textbox height after IntegralHeight has resized the textbox to accomodate a specific font?

Thank you,

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform