Modify

Opened 16 years ago

Closed 16 years ago

#1475 closed Bug (Fixed)

TrayItemSetState($Value, $Tray_Checked) enables an disabled TrayItem

Reported by: Emiel Wieldraaijer Owned by: Jon
Milestone: 3.3.5.5 Component: AutoIt
Version: 3.3.4.0 Severity: None
Keywords: TrayItemSetState Cc:

Description

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

Attachments (0)

Change History (1)

comment:1 by Jon, 16 years ago

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

Fixed by revision [5708] in version: 3.3.5.5

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.