The text in a TEdit
(or TCombo, TButtonedEdit) is always aligned to top. I have not found any property to change the alignment. Usually it is not a problem, unless I want to set a larger height.
I googled a little. There are solutions to adjust the left and the right margins by sending a Windows message. But I have no idea, how to adjust the vertical alignment.
I do not want to use a larger font. Any ideas?
If there was such an option it would be applied by way of a style. The EDIT
control styles list contains no such style and so the conclusion is that the underlying control does not offer this functionality.
You'll have to either make a new control, or take over the painting yourself. Neither is particularly appealing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With