This is a migrated thread and some comments may be shown as answers.

MDI merging RadToolbar & RadMenu

3 Answers 63 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James Relyea
Top achievements
Rank 1
James Relyea asked on 10 Dec 2009, 06:32 PM
I've seen some posts about merging toolbars. My impression is that it can be done, but not something that's currently built in. Am I correct? If it is built in, could someone point me to the necessary steps?

I have this scenario: I have a MDI form that opens MDI child forms as document windows. Each MDI child has its own RADToolbar that I'd prefer to have merged with the MDI parent's RADToolbar like VS does.

Thanks

:)
jr

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 11 Dec 2009, 09:09 AM
Hello James Relyea,

Thank you for your interest in our controls for WinForms. Unfortunately MDI merge for toolbars is not currently implemented and it has not been scheduled for the next release.

All the best,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
James Relyea
Top achievements
Rank 1
answered on 14 Dec 2009, 04:05 AM
I might've found a way to accomplish this. Time will tell though, but it only takes a few lines of code. The general logic looks like this:

MDI Child forms: make a public property of a RADToolBar item or element
MDI Parent with the RADDock set to autodiscover MDI Children: On the ActiveWindowChanged method, clear the items, declare a new form = the DockWindow.ActiveControl (this is where I'm not sure what will go awry with resource consumption yet), Then, on the MDI parent, add the items made available via the public property of the child form

It's working so far for me, but I can see where it could be tricky to manage if a number of toolbar elements are used.

If I run a SuspendLayout & resumelayout, the screen doesn't shift at all and the entire transition is silky smooth.

:)
jr
0
Nick
Telerik team
answered on 14 Dec 2009, 07:28 AM
Hello James Relyea,

Thank you for feedback. I am glad that you find a solution for the case.

Kind regards,
Nick
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
James Relyea
Top achievements
Rank 1
Answers by
Nick
Telerik team
James Relyea
Top achievements
Rank 1
Share this question
or