﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1475	TrayItemSetState($Value, $Tray_Checked) enables an disabled TrayItem	Emiel Wieldraaijer	Jon	"Hi All,

I've disabled a trayitem and when is give it a command to check the trayitem it's enabled. Is this by Design ! i believe it's a bug

Best regards,

Emiel Wieldraaijer

[AutoIt]
#Include <Constants.au3>
#include <GUIConstantsEx.au3>

Opt(""TrayMenuMode"", 1)
Opt(""TrayOnEventMode"", 1)

$GUI = GUICreate(""TrayItemSetState"", 200, 200)
$Button1 = GUICtrlCreateButton (""Check TrayItem"", 20, 20, 100, 20)
GUISetState ()

$Tray1 = TrayCreateItem(""Hello World"")
TrayItemSetOnEvent(-1, ""_Tray1"")
TrayItemSetState($Tray1, 128)

$Tray2 = TrayCreateItem(""Exit"")
TrayItemSetOnEvent(-1, ""_Terminate"")

While 1
	$msg = GUIGetMsg ()

	Switch $msg
		Case -3
			ExitLoop
		Case -50 To 0
			ContinueLoop
		Case $GUI_EVENT_CLOSE
			_Terminate()
		Case $Tray2
			_Terminate()
		Case $Button1
			TrayItemSetState($Tray1, $Tray_Checked)
	EndSwitch
Wend

Func _Terminate ()
	Exit
EndFunc

Func _Tray1 ()
	Msgbox (64, ""TrayItemOne"", ""Hello World"")
EndFunc
[/AutoIt]"	Bug	closed	3.3.5.5	AutoIt	3.3.4.0	None	Fixed	TrayItemSetState	
