I have an MdiParent with a UltraToolbarsManager and then all of the forms created in the parent will contain their own identical UltraToolbarsManager controls. This works completely fine except I would like to give the user the ability to pop a child out of the MdiParent into it's own window by setting MdiParent = null, saving the old value to be reset after they dock the window back.
When I set MdiParent of the child control = null the window pops out as expected and the toolbars are no longer merged but the UltraToolbarsManager control of the child control is completely missing. It is no longer merged with the MdiParent nor is it visible on the child control, is there anyway to fix this?
Also, if anyone has anyone better suggestions to setting MdiParent = null to create float/docking I'm all ears. Thanks, Boyd Perkins
I can confirm that the above approach is correct, I am using it in my application. I would post sample code but there is entirely too much irrelevant code to the question in my class that does this. Make sure that the toolbar on the popped out child form isn't set as a child toolbar on any other toolbar.
I was also facing the same problem and I followed the steps suggested by you for manual merging of toolbar and popping the child out of mdi.
But still it's behaviour is same and the child form which has been popped out from mdi is not showing the toolbar even it's toolbar visibility set to true.
Please help...
Regards,
Nishant Sagar
My memory is a little unclear about what happened with this, but I think it was determined that when an MDI child Form has its UltraToolbarsManager automatically merged with the parent manager, the UltraToolbarsManager will never again show its own toolbars for the remainer of the run of the application. If you would like to accomplish a scenario like this, you would have to disbale automatic merging on the child managers by setting MdiMergeable to False. Then you would have to manually perform the merge in the parent Form's MdiChildActivate event, by setting the ActiveMdiChildManager of the parent manager. You will also have to make sure the toolbars are hidden for non-active mdi children, because they will show by default when using this approach. I recommend setting Visible to False on the UltraToolbarsManagers of all mdi child Forms. When the child Form is "popped out" of the parent, you can set Visible back to True to show the toolbars.
I would like this feature too.
Is this completeed?
My mistake. I forgot that the property cannot be set after a merge. In that case, it looks like submitting it is the best option.