﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1504	GUICtrlSetBkColor sets button style to $BS_DEFPUSHBUTTON	SEuBo		"Hello,

When GUICtrlSetBkColor is used on a button, it ""steals"" the focus.
Run the script below.
Type something into the input, and confirm by pressing Enter.
Everything works fine.

Now click the Button, and type something into the Input. After that, press Enter.

By watching the Console input you will notice, that the button event is now fired, everytime you hit enter.

This is exactly, what $BS_DEFPUSHBUTTON is doing, isn't it?
I guess this is not intended behaviour.

{{{
$hGUI = GUICreate("""")
$cInput = GUICtrlCreateInput("""", 20, 20, 50, 20)
$cDelete = GUICtrlCreateButton(""x"", 20, 50, 50, 20)
GUICtrlSetBkColor(-1, 0xAAAAAA)
GUISetState()

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case -3
			Exit
		Case $cDelete
			ConsoleWrite(""Delete"" & @CRLF)
		Case $cInput
			ConsoleWrite(""Input"" & @CRLF)
	EndSwitch
WEnd
}}}

Tested on Vin Wista x86."	Bug	closed		AutoIt	3.3.4.0	None	Wont Fix		
