Jump to content

[Solved] vertically center label text on its background?

Recommended Posts


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

Fantastic!  (And what a relief!)

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


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