qwert Posted February 15, 2018 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
InnI Posted February 16, 2018 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
qwert Posted February 19, 2018 Author 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. Expand Thanks very much!
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