Switch between ToolStrip and Ribbon

Topics related to the Krypton Ribbon.

Moderators: Phil Wright, Chris Porter

Switch between ToolStrip and Ribbon

Postby Edgar Ferreira » Wed Aug 11, 2010 11:14 pm

I want to dynamically switch between the old fashioned MenuStrip/ToolStrip mode and the Ribbon mode (according to user settings).

I searched the forum for some tips, but no answers! Did anyone here perform something like this before?
Thanks in advance.

P.S: my application MenuStrip changes accoding to loaded plugins, so thats why I need the Ribbon to be built dynamically.
Edgar Ferreira
 
Posts: 132
Joined: Thu Mar 26, 2009 8:59 pm
Location: Coimbra, Portugal

Re: Switch between ToolStrip and Ribbon

Postby JoostS » Thu Aug 12, 2010 5:48 pm

You could use an ActionList or something to handle the buttons on toolstrip and ribbon. Just Google for an example or have a look at CodeProject.
JoostS
 
Posts: 35
Joined: Mon Jan 12, 2009 6:12 pm

Re: Switch between ToolStrip and Ribbon

Postby Edgar Ferreira » Thu Aug 12, 2010 7:45 pm

As I understand, ActionList and KryptonCommand have the same purpose. Am I right?
The problem is that KryptonCommand is only usable in Krypton controls.

But I see your point, using ActionLists I avoid setting all events and properties repeatedly.
I'll give it a try and post some feedback later!
Edgar Ferreira
 
Posts: 132
Joined: Thu Mar 26, 2009 8:59 pm
Location: Coimbra, Portugal

Re: Switch between ToolStrip and Ribbon

Postby JoostS » Thu Aug 12, 2010 7:59 pm

Yes indeed, the reason why I pointed at the ActionList instead of the KryptonCommand is we where working with such a component before we used Krypton, and never used KryptonCommand.

You could inherit from it or change the source to use it for other controls too.
JoostS
 
Posts: 35
Joined: Mon Jan 12, 2009 6:12 pm


Return to Krypton Ribbon

Who is online

Users browsing this forum: No registered users and 1 guest

cron