Best approach for scripted toolbars?

Bars for Windows Forms Forum

Posted 18 years ago by Kasper
Version: 2.0.78
Avatar
Hi,

In my application, I wish for my users to be able to create toolbars (DockableToolbar) from their own scripting code. This works fine, but once the user exits the application, the newly created toolbar is saved along with the ordinary toolbars, which I don't want. What's the best way to prevent the BarManager from saving the toolbar? I've looked for a property that might tell the BarManager not to persist it, but I can't seem to find any.

Comments (1)

Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You'd have to remove the DockableToolBar from the BarManager completely if you don't want it to be serialized. So first deactivate those user toolbars, remove them from the BarManager, then do the layout save. That should work.


Actipro Software Support

The latest build of this product (v24.1.1) 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.