Modify

Opened 18 years ago

Closed 18 years ago

Last modified 17 years ago

#252 closed Bug (Fixed)

Control focus changing when window loses/regains focus

Reported by: Saunders <admin@…> Owned by: Jon
Milestone: 3.2.13.0 Component: AutoIt
Version: 3.2.11.10 Severity: None
Keywords: focus change Cc:

Description

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

Attachments (0)

Change History (3)

comment:1 by Jon, 18 years ago

I found the revision it happened in (3297) which was when I fixed the new accelerator code. Not sure what is causing it though yet...

comment:2 by Jon, 18 years ago

Milestone: 3.2.11.13
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed in version: 3.2.11.13

comment:3 by Valik, 17 years ago

Milestone: 3.2.11.133.2.13.0

Fixing wrong milestone.

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.