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: TComponent);
begin
inherited;
Caption := 'My ToolWindow';
end;
// register/unregister the tool window
initialization
TppToolWindowFactory.Register(TmyDesignToolWindow);
finalization
TppToolWindowFactory.UnRegister(TmyDesignToolWindow);
end;