Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining optimum height of textbox
Message
From
21/06/2005 16:07:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Determining optimum height of textbox
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01025266
Message ID:
01025266
Views:
63
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
Next
Reply
Map
View

Click here to load this message in the networking platform