Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
Issue programmatically adding tools to popup menu in merged MDI child (WITH REPRODUCING SAMPLE)
posted

When adding tools programmatically to a dropdown menu (via the BeforeToolDropdown event), it works fine in the MDI parent, but when attempting to do the same thing in the MDI child, the added tools do not appear.  The tools are definitely in the collection of the popup menu, they simply do not show. 

I assume that this has something to do with the merging mechanism.  I guess all the tools from the child are imported into the parent and somehow when these programmatic changes happen, they are not being replicated/flushed to the parent.  

See the attached sample, it is self explanatory.

How can I force the merged parent tab to refresh with my programmatic changes?

MDI_MergePopupMenuOddity.zip