﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
252	Control focus changing when window loses/regains focus	Saunders <admin@…>	Jon	"This bug appears to have been introduced in 3.2.11.10.
Steps to reproduce:
	1. Run script, notice the ToolTip which constantly displays the focused window control.
	2. Manually place focus in the edit control (click the mouse in the field).
	3. Alt+Tab, or otherwise change the system focus to another window.
	4. Return to the script's window.
	5. The window's focus has changed to the label (Static1).
	** With AutoIt 3.2.11.9, the focus correctly stays on the Edit control (Edit1).

{{{
Global Const $WS_CHILD = 0x40000000
Global Const $GUI_EVENT_CLOSE = -3

$guiP = GUICreate(@AutoItVersion, 200, 200)
GUICtrlCreateLabel('Label (Static1)', 0, 0, 200, 20)
GUISetState()

$guiC = GUICreate('', 200, 180, 0, 20, $WS_CHILD, Default, $guiP)
GUICtrlCreateEdit('Edit (Edit1)', 0, 0, 200, 180)
GUISetState()

While 1
	ToolTip(ControlGetFocus($guiP))
	$gm = GUIGetMsg()
	If $gm = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
}}}"	Bug	closed	3.2.13.0	AutoIt	3.2.11.10	None	Fixed	focus change	
