﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2945	Center and right justified text broken on native buttons when colours set	AlanParry	Jon	"Hi,

After upgrading my scripts from 3.3.8.1 to 3.3.12.0/3.3.13.19 it appears that center and right justification of native buttons aren't working properly now when either 
     i) GUICtrlSetDefColor or GUICtrlSetDefBkColor called before a button wiht aligned text is created
    ii) GUICtrlSetColor or GUICtrlSetBkColor is called after the text alignment has been set.

[[BR]]

An alternate problem is: if the alignment is set using GUICtrlSetStyle after the colour has been set then the colours settings are lost (but the alignment is then correct).
(Note also:- Strangely after loosing set default colours with a style change, setting just the background colour restores the foreground colour as well, as can be seen in the last set of examples).

[[BR]]

The problems occur on 3.3.12.0 and 3.3.13.19.  Slightly different but similar issues occurred in 3 3.8.1.  My suspicion is that it that it might be related to the bug fix for #2299 at milestone 3.3.9.21.
In 3.3.8.1 Left and Right alignment were wrong but center was correct.

The permutations of: default color settings; alignment at creation; style changes; and color changes effect the issue in different ways.  So I have attached a script that shows the permutations and labels those which are wrong.

[[BR]]

Without wishing to state the obvious I wonder if the values used by MS for alignments are causing any confusion as 
  BS_CENTER = BitOR(BS_LEFT, BS_RIGHT)
so simple bit tests don't always do what expected.

Regards
Alan Parry"	Bug	closed	3.3.15.0	AutoIt	3.3.13.19	None	Fixed		
