Koda

Welcome to Koda bug tracker!

At the moment you can post bugreports or suggestions anonymously. But registered users have some benefits: attaching files, commenting, voting, tracking tasks e.t.c.

Due some asshole started spamming tracker, now (at least for some time) it’s not allowed to create anonymous tasks. Sorry for unconvenience.

In edit fields you can use DokuWiki syntax for formatting.

Tasklist

FS#215 - TrayMenu | MouseClick | Default

Attached to Project: Koda
Opened by Chris Haslam (c.haslam) - Thursday, 21 April 2011, 20:00 GMT+3
Type Bug Report
Category Application
Status Assigned
Assigned To Admin (Lazycat)
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

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?

This task depends upon

Comment by Admin (Lazycat) - Friday, 22 April 2011, 10:46 GMT+3
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.

Comment by Chris Haslam (c.haslam) - Saturday, 23 April 2011, 18:39 GMT+3

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.

Comment by Admin (Lazycat) - Tuesday, 26 April 2011, 10:16 GMT+3

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

Comment by Chris Haslam (c.haslam) - Tuesday, 26 April 2011, 17:35 GMT+3
The e-mail you registered with is valid?

Yes.

Loading...