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
665
Saving a MDI parent's merged toolbar saves portion of the MDI child's toolbar
posted

An MDI child's toolbar is merged with its MDI parent's toolbar in the 'File' popupmenu.  If the MDI child is closed, and the layout of the MDI parent's toollbar is saved, menu items in the parent's 'File' menu that were merged from the child are saved in the layout.

The child's menu items are not visible, although they do exist along the 'File' popupmenu's '.Tools' collection.

Is there some way to force the MDI parent to remove all the child's merged tools from the parent's popupmenu '.Tools' collection so that the layout of the parent can be properly saved?

Thanks

Pat

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Pat, 

    Just to expand upon what Michael wrote above... the reason that the main UltraToolbarsManager layout includes placeholders for the tools on the MdiChild is because the user can show a child form, at which point the tools are merged, and then modify the toolbar layout. They could move tools around or customize the tools in a number of ways. And so you typically want those customizations to persist the next time you run your application. If they were stripped out of the layout file, they would be lost. 

    Also, just to be clear, there isn't really any good or easy way to remove them - because in general, they are there intentionally and I can't see why you would want to remove them. The only possible reason(s) I could think of for doing that would be if maybe you modified your app such that the child dialog no longer exists. Or maybe you are concerned about reducing the file size of the layout file?  

Children
No Data