qwert Posted February 15, 2018 Share Posted February 15, 2018 (edited) 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. Edited February 20, 2018 by qwert Link to comment Share on other sites More sharing options...
InnI Posted February 16, 2018 Share Posted February 16, 2018 #include <StaticConstants.au3> GUICreate("") GUICtrlCreateLabel("Label Text", 11, 11, 111, 111, BitOR($SS_CENTER, $SS_CENTERIMAGE)) GUICtrlSetBkColor(-1, 0xFFFFFF) GUISetState() Do Until GUIGetMsg() = -3 Link to comment Share on other sites More sharing options...
qwert Posted February 19, 2018 Author Share Posted February 19, 2018 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now