Notifications
Clear all

[Closed] Multiple RCMenus

Hi,
I have a dialog with 2 listviews inside.
I want to have a RCMenu appear when I rightclick on each listview. However the catch is, I need different listviews to popup depending on the listview I click.

When I create the dialog, I only seem to get the option to register a single RCMenu.

How do I achieve my goal here?

Thanks,

Rhys

6 Replies

…do popUpMenu rcmenu_1
!?

Ahh I am an idiot!

I thought the menu had to be registered with the rollout in order to call the popup.
Turns out I can define as many as I want and then just call the popup

Thanks

This seems an appropriate place to put this question…

But rather than having, say 4 very similar but different RCMenu's, is there any way to alter a RC menu after creation (alternately, at runtime).

for example, something like

   rcmenu testRCMenu(
  for itm in itmArray do(
   menuItem mnItem_+itm itm
  )
    )
 

But it seems there’s very little you can put inside a RCMenu definition?

Go here and find “Dynamic RCMenu function”.

that looks like it’ll do the trick – thanks!

you can use the stringStreamas well to make it dynamic.