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