Question “How can I customize the menu and toolbars?” Solution The following example shows how to acess the menus and toolbars to add/remove items, hide toolbars, and assign custom event-handlers. Download: DesignerCustomizeMenusAndToolbars.zip Sample Delphi code: uses ppTBX, ppToolbarTBX, ppDesignLayoutManager, ppDesignLayoutMenu, ppDesignToolManagerTBX, ppDesignToolbarsTBX, ppDesignToolActions, ActnList; {****************************************************************************** Example: hide File | Print menu item ******************************************************************************} procedure TForm1.btnHideFilePrintClick(Sender: Full Article…
Search the Wiki
How To…Add Custom Tool Window
Question “How can I add a custom tool window to the Designer?” Solution The example shows how to create a custom tool window and register it with the Design tools. Download: DesignerAddToolWindow.zip Sample Delphi code: uses ppDesignToolWindow, ppToolbarTBX; type // descend from TppDesignToolWindow TmyDesignToolWindow = class(TppDesignToolWindow) public constructor Create(Owner: TComponent); override; end; implementation constructor TmyDesignToolWindow.Create(Owner: Full Article…
Using Template Events
The Report.Template object has several events that can be used for customizing what happens when a report is loaded or saved: – OnLoadStart – OnLoadEnd – OnNew – OnSaveStart – OnSaveEnd The OnLoadEnd and OnNew events are often used to perform actions related to report and data initialization. The OnSaveEnd event is often used to Full Article…