rbWiki > End-User > Designer > How To...Add Custom Tool Window

How To...Add Custom Tool Window

Table of contents
  1. 1. Question 
  2. 2. Solution

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;
Tags

Files (0)

 
You must login to post a comment.