﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
66	BS_DEFPUSHBUTTON getting lost	Larry	Valik	"If I tab around or click somewhere and tab I lose the $BS_DEFPUSHBUTTON ability of my button.

When the dialog comes up press [Enter] and it works... tab around and press [Enter] and it works no more.

{{{
_Singleton(""mdioahffifmffkjkfs"")

#include <StaticConstants.au3>
#include <ButtonConstants.au3>
#include <WindowsConstants.au3>

Opt(""RunErrorsFatal"",0)

Global $sRoot=""\\not important\projects\s\stuff\Dev""

$gui = GUICreate(""Package File Structure"",400,230,-1,-1,BitOR($WS_CAPTION,$WS_SYSMENU));,$WS_EX_TOPMOST)
GUICtrlCreateLabel(""Root Dir:"",10,12,80,18,$SS_RIGHT)
GUICtrlCreateLabel(""Vendor:"",10,37,80,18,$SS_RIGHT)
GUICtrlCreateLabel(""Application:"",10,62,80,18,$SS_RIGHT)
GUICtrlCreateLabel(""App Version:"",10,87,80,18,$SS_RIGHT)
GUICtrlCreateLabel(""Customer:"",10,112,80,18,$SS_RIGHT)
GUICtrlCreateLabel(""OS:"",10,137,80,18,$SS_RIGHT)
GUICtrlCreateLabel(""App Language:"",10,162,80,18,$SS_RIGHT)

$root = GUICtrlCreateInput($sRoot,95,8,210,22)
$browse = GUICtrlCreateButton(""&Browse..."",310,8,80,22)

$vendor = GUICtrlCreateInput("""",95,33,295,22)
$app = GUICtrlCreateInput("""",95,58,295,22)
$appver = GUICtrlCreateInput("""",95,83,295,22)
$customer = GUICtrlCreateInput("""",95,108,295,22)
$os = GUICtrlCreateInput("""",95,133,295,22)
$applang = GUICtrlCreateInput("""",95,158,295,22)

$create = GUICtrlCreateButton(""C&reate"",205,188,185,30,$BS_DEFPUSHBUTTON)
$cancel = GUICtrlCreateButton(""&Cancel"",10,188,185,30)

GUISetState()

While 1
	$msg = GUIGetMsg()
	Switch $msg
		Case -3,$cancel
			Exit
		Case $create
			MsgBox(4096,"""",""DEFPUSHBUTTON WORKED"")
	EndSwitch
WEnd

Func _Singleton($sOccurenceName, $iFlag = 0)
	Local $ERROR_ALREADY_EXISTS = 183, $handle, $lastError
	
	$sOccurenceName = StringReplace($sOccurenceName, ""\"", """")
	$handle = DllCall(""kernel32.dll"", ""int"", ""CreateMutex"", ""int"", 0, ""long"", 1, ""str"", $sOccurenceName)
	$lastError = DllCall(""kernel32.dll"", ""int"", ""GetLastError"")
	If $lastError[0] = $ERROR_ALREADY_EXISTS Then
		If $iFlag = 0 Then
			Exit -1
		Else
			Return SetError($lastError[0], $lastError[0], 0)
		EndIf
	EndIf
	Return $handle[0]
EndFunc
}}}"	Bug	closed	3.2.11.1	AutoIt	3.2.10.0		Fixed	GUI button style	
