﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
183	Event of radio control fired when the GUI is reactivated	MsCreatoR <mscreator@…>	Jpm	"For some reason, when we create a radio control, the same event is triggered when the GUI is unactivated and then activated again.


'''Bug reproduction:'''

Run the example bellow, then minimize the GUI, and then activate it back. You should see the message box...


{{{
#include <GuiConstants.au3>

$hGUI = GUICreate(""Test GUI"", 360, 220)

$My_Radio = GUICtrlCreateRadio(""Radio"", 20, 110)

$Cancel_Button = GUICtrlCreateButton(""Cancel"", 20, 180, 80, 20)

GUISetState(@SW_SHOW, $hGUI)

While 1
	Switch GUIGetMsg()
		Case $GUI_EVENT_CLOSE, $Cancel_Button
			Exit
		Case $My_Radio
			MsgBox(0, """", ""Is this normal?"")
			
			Exit ;We need to exit because the message will popup every time
	EndSwitch
WEnd
}}}


The same with OnEvent mode, and also if we use advanced mode, i.e ''GUIGetMsg(1)''.

It seems that this happening only with Raio control, but i am not 100% sure, tested only few basic controls (label, button, etc.).

BTW, the same bug appears in AutoIt v3.2.8.1.

Thanks."	Bug	closed	3.2.11.5	AutoIt	3.2.10.0		Fixed	radio event	
