Modify

Opened 15 years ago

Closed 15 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 Changed 15 years ago by Jon

  • Milestone set to 3.3.5.5
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5708] in version: 3.3.5.5

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The owner will remain Jon.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.