﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3877	$GUI_ONTOP hides the control when already on top	Nine	Jon	"Setting the button to $GUI_ONTOP makes it disappear :
{{{#!autoit
#include <GUIConstants.au3>

Local $hGUI = GUICreate(""Example"", 300, 200, -1, -1, BitOR($WS_POPUP, $WS_BORDER))
GUISetBkColor(0xC0C0C0)

Local $idLabel = GUICtrlCreateLabel("""", 0, 0, 300, 200, Default, $GUI_WS_EX_PARENTDRAG)

Local $idClose = GUICtrlCreateButton(""Close"", 210, 170, 85, 25)
GUICtrlSetState(-1, $GUI_ONTOP)

GUISetState()

While True
  Switch GUIGetMsg()
    Case $GUI_EVENT_CLOSE, $idClose
      ExitLoop
    Case $idLabel
      ConsoleWrite(""Label"" & @CRLF)
  EndSwitch
WEnd
}}}

Giving focus ($GUI_FOCUS) to the button is a workaround, but when GUI has hundred controls it is hardly viable."	Bug	closed	3.3.16.1	AutoIt	3.3.16.0	None	Fixed		
