Jump to content

Recommended Posts

Posted

i have:

For $n = 1 To 4

$ahExtList[$n-1] = TrayCreateItem("&" & ($n + 1), $hMenuExt, $n + 1, 1)

Next

and then:

$msg=TrayGetMsg()

Switch $msg

Case $ahExtList[0]

....

Case $ahExtList[1]

....

Case $ahExtList[2]

....

Case $ahExtList[3]

....

do it is possibile to use only

Case $ahExtList

msgbox(0,0, $ahExtList number)

?

excuse my english.

  • Moderators
Posted

I read your question again. I hadn't finished my coffee yet!

One option would be to catch $msg > 0. This will give you the control id and that is what is stored in each element of your array. Another option would be to use OnEvent code.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...