Dockable toolbars list in view menu

Bars for Windows Forms Forum

Posted 18 years ago by Thierry Bouchard

I just found out how to use the stuff to list automatically the toolbars in a menu using barCommands. What is bad is that our menu design is using the OwnerDrawMenuItem class and not the BarButtonCommand and BarButtonLink classes, so I cant use the BarExpanderButtonLink and the functionalities provided by it.

Id just like to know if theres a way to use the same functionality with OwnerDrawMenuItem or if Ill have to implement the code myself to display a dynamic toolbar menu. That also makes me wonder if our approach to creating menus is good since we seem to be missing a lot of built-in functionalities if we don't do like you do in the samples. Maybe I could tell if the documentation would state more explicitly what the classes are supposed to be used for.


Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Hi Thierry,

The OwnerDrawMenuItem class is simply our own class that inherits the standard WinForms MenuItem class. It doesn't add any functionality to MenuItem other than drawing the items similar to how Office and Visual Studio do. So if you are using those menu items then you have to build your menus programmatically, just like you do with regular MenuItems.

Actipro Software Support

The latest build of this product (v24.1.0) was released 4 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.