In the menu handler, how do I get the ID of the Menu item
Posted: 15 Dec 2021, 10:16
Hi,In the menu handler, how do I get the ID of the Menu item
In addition to these three information, how to get the menu ID
In addition to these three information, how to get the menu ID
Code: Select all
BoundGivePar := Func("GivePar").Bind("First", "Test one")
BoundGivePar2 := Func("GivePar").Bind("Second", "Test two")
Menu MyMenu, Add, Give parameters, % BoundGivePar
Menu MyMenu, Add, Give parameters2, % BoundGivePar2
Menu MyMenu, Show
GivePar(a, b, ItemName, ItemPos, MenuName)
{
MsgBox % "a:`t`t" a "`n"
. "b:`t`t" b "`n"
. "ItemName:`t" ItemName "`n"
. "ItemPos:`t`t" ItemPos "`n"
. "MenuName:`t`t" MenuName
}