Jump to content
chkaufmann

TEdit - Center text vertical

Recommended Posts

I have a TEdit that is a bit higher than normal in order to align it with other controls. Then I wanted to center the text vertically but there is no such property and the only solution I found is to overwrite the Paint method in a subclass. Is this really the case? Or did I miss something?

 

Christian

Share this post


Link to post

TEdit is just a wrapper for a standard Win32 edit control, which does not support vertical alignment, only horizontal.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×