How to create custom toolbar ?
Hi,
I've wanted to create custom toolbar which will appear in FastReport designer.
I've read the documentation and I found out that I have to create class which derived from ToolbarBase. So, I've created such class, set Name property in constructor, and created buttons, and at the end I've registered my class using DesignerPlugins.Add() method. But unfortunately, after launch my application, the toolbar did not appear.
I've sifted through source code, and I found out, that other toolbars which derived from ToolbarBase (like LayoutToolbar, StandardToolbar) are added to Controls collection of ToolbarTopDockSite, but I haven't found any code which do the same for custom toolbars.
Is it possible to add custom toolbar to designer, and what steps should be taken to accomplish it ?
I've wanted to create custom toolbar which will appear in FastReport designer.
I've read the documentation and I found out that I have to create class which derived from ToolbarBase. So, I've created such class, set Name property in constructor, and created buttons, and at the end I've registered my class using DesignerPlugins.Add() method. But unfortunately, after launch my application, the toolbar did not appear.
I've sifted through source code, and I found out, that other toolbars which derived from ToolbarBase (like LayoutToolbar, StandardToolbar) are added to Controls collection of ToolbarTopDockSite, but I haven't found any code which do the same for custom toolbars.
Is it possible to add custom toolbar to designer, and what steps should be taken to accomplish it ?