, , IDE . , IDE .
- - IDE . . ( .)
File->New->Package (Delphi) IDE. , (, MyComponents.dpk).
File->New->Other->Delphi Files Component . New Component, , ( ).
, :
unit MyToolBar1;
interface
uses
System.SysUtils, System.Classes, Vcl.Controls, Vcl.ToolWin, Vcl.ComCtrls;
type
TMyToolBar = class(TToolBar)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Samples', [TMyToolBar]);
end;
end.
, , .
Project Manager ( IDE) Install . IDE. (, , Samples , RegisterComponents.)
( .pas .dfm!). TToolBar, , . .
TToolBar TMyToolBar.
View as Text .
TToolBar TToolBar TMyToolBar.
View as Form . , TMyToolBar . ( ), - ; , Close tab, "" , , , , .