Solved.
the PodcastCategory menuarray I was trying to add did not exist in
the menubar, when adding the PodcastCategory menu handler it didn't
come with index parameter it was simply 'Function PodcastSetCategory
() as boolean'
I added in the IDE a PodcastCategory menuarray in the menubar and now
the menu handler looks like 'Function PodcastSetCategory(index as
integer) as boolean'.
HTH someone else,
Tomas
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>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>