Is there a trick to getting BarCommandLnkColl.Insert to work

Bars for Windows Forms Forum

Posted 18 years ago by Keith Hill
Avatar
I inserting menu items but they don't seem to be showing up. Is there a trick like with toolbars where you have to invalidate the parent popup link?

Comments (5)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes after making a change do some code like this to invalidate the layout:
barManager.DockableToolBars["Standard"].Invalidate(InvalidationLevels.All, InvalidationTypes.All);
Of course pass in the appropriate toolbar key instead of Standard.


Actipro Software Support

Posted 18 years ago by Keith Hill
Avatar
Does the same thing work for the MenuBar? I can't seem to get it work on a menubar?
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, menu bars are a subclass of dockable toolbars. If you are having trouble, then please post some repro steps that we can paste in the sample project and we'll take a look.


Actipro Software Support

Posted 18 years ago by Keith Hill
Avatar
Doh! It was the LoadBarLayoutFromFile that was overwriting my menu bar insertions. Hmm, I think I have a way to work around that problem. :-)
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hey we're just happy it's not a bug! :)


Actipro Software Support

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

Add Comment

Please log in to a validated account to post comments.