Hi all,

I created a dynamic menuitem which I insert in my app menubar like this:

  mainMI=New MenuItem
  mainMI.Text="main"
  mainMI.Name="PodcastCategory"

  for i=0 to UBound(myarr)
      MI = New MenuItem
      MI.Name="PodcastSetCategory"
      MI.text= myarr(i)
      MI.Index=i
      mainMI.Append MI
  next


I added a menuhandler called PodcastSetCategory that fires correctly when one of the PodcastSetCategory is clicked, but how do I determine which one was clicked? How do I retrieve the index of the clicked menuitem?

Is this a wrong approach? This works fine in ContextualMenus as I can retrieve hititem.index, I was hoping to do the same or something similar in the menubar.


Thanks,
Tomas
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to