• Status Assigned
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Application
  • Assigned To
    Admin
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Development
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Koda
Opened by Chris Haslam - 21.04.2011

FS#215 - TrayMenu | MouseClick | Default

I have problems with Koda generating TraySetClick(”0”) as the default:

  • AutoIt help says that the default is 9 (tray menu shows when left or right mouse button is pressed)
  • The Koda default being Tray menu will never be shown through a mouseclick can lead the inexperienced user to think that creating the Tray Menu has failed.
  • The Tray Menu doc says that the default is mcPriPress + mcSecPress.

It is not clear to me what ShowStdMenu does when a Tray Menu control is on a form.

Any thoughts?

Admin
Admin commented on 22.04.2011 06:46
I have problems with Koda generating TraySetClick(”0”) as the default:

Agree with that, I probably missed what Autoit doc says about default value.

It is not clear to me what ShowStdMenu does when a Tray Menu control is on a form.

This control Opt("TrayMenuMode", 1/0) option - attach standard menu to your custom menu or not. Try set it to True, run preview and see how your menu looks.

Chris Haslam commented on 23.04.2011 14:39

Playing around with TrayMenu and then generating gave me:

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("TrayMenuMode", 1)
Opt("TrayMenuMode", 1)
Opt("TrayMenuMode", 1)
Opt("TrayIconDebug", 1)
Opt("TrayMenuMode", 1)
Opt("TrayMenuMode", 0)
Opt("TrayMenuMode", 0)
#Region ### START Koda GUI section ### Form=
Local $Form1 = GUICreate("Form1", 623, 449, 192, 114)
Local $Label1 = GUICtrlCreateLabel("Label1", 120, 64, 36, 17)
TraySetIcon("", -1)
TraySetClick("9")
Local $MenuItem1 = TrayCreateItem("MenuItem1")
Local $MenuItem2 = TrayCreateItem("MenuItem2")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
 
While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
 
	EndSwitch
WEnd

Bug.

Part of my "playing" was to overcome the wrong default settings for MouseClick.

.kxf file is attached.

Admin
Admin commented on 26.04.2011 06:16

Seems this was already fixed before. I think I need to give you current snapshot. The e-mail you registered with is valid?

Chris Haslam commented on 26.04.2011 13:35
The e-mail you registered with is valid?

Yes.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing