S
Steve Dussinger
I have an application which needs to dynamically create menu items in
a context menu, each time that menu is displayed.
In my program I have a context menu which contains a menuItem called
"moveItemCMI". This menu item needs to have its children repopulated
each time I display the menu. In order to do this, I've written some
code the remove all of the child items from "moveItemCMI" and to
create new menu items containing the correct information each time I
popup this context menu.
The problem is that this only appears to work the first time i display
the menu. On each subsequent attempt to display the context menu, the
"moveItemCMI" menu item has no children (although it does display the
arrow indicating that there are children).
I can see from my debugging output that I am creating the menu items
correctly, but nothing shows up after the first attempt.
Is there something else I need to do to tell the menuItem to refresh
other than simply removing and adding items?
Thanx,
Steve Dussinger
a context menu, each time that menu is displayed.
In my program I have a context menu which contains a menuItem called
"moveItemCMI". This menu item needs to have its children repopulated
each time I display the menu. In order to do this, I've written some
code the remove all of the child items from "moveItemCMI" and to
create new menu items containing the correct information each time I
popup this context menu.
The problem is that this only appears to work the first time i display
the menu. On each subsequent attempt to display the context menu, the
"moveItemCMI" menu item has no children (although it does display the
arrow indicating that there are children).
I can see from my debugging output that I am creating the menu items
correctly, but nothing shows up after the first attempt.
Is there something else I need to do to tell the menuItem to refresh
other than simply removing and adding items?
Thanx,
Steve Dussinger