Jump to content
qwert

[Solved] vertically center label text on its background?

Recommended Posts

qwert

I've used $SS_CENTER to center text within a control.

Is there a setting or method to center text vertically?

I don't use GuiCtrlSetBkColor very often.  I usually set the background transparent.  But now that I have a GUI that can use background colors, I realize that I've never seen an example of vertical centering.

Thanks in advance for any help.

Create Label.PNG

Edited by qwert

Share this post


Link to post
Share on other sites
qwert

Fantastic!  (And what a relief!)

I never noticed this one small statement amidst all the talk about bitmaps:

Quote

It can be used with static control having only one line of text.

Thanks very much!

Share this post


Link to post
Share on other sites

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

×