unit MulitiTitlePrintPage;
interface
uses
Windows, Messages, SysUtils, Classes, Controls, ExtCtrls,ComCtrls,Graphics;
type
TMulitiTitlePrintPage = class(TPanel)
private
iTreeView : TCustomTreeView;
FItems : TTreeNodes;
// FPrintPage : TRichEdit;
procedure SetItems(Value:TTreeNodes);
{ Private declarations }
protected
{ Protected declarations }
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
property iItems : TTreeNodes read FItems write SetItems;
{ Published declarations }
end;
procedure Register;
implementation
constructor TMulitiTitlePrintPage.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ParentColor := True;
BevelOuter := bvNone;
Caption := '';
Color := clWindow;
iTreeView := TCustomTreeView.Create(Self);
iTreeView.Parent := Self;
iTreeView.Visible := False;
end;
destructor TMulitiTitlePrintPage.Destroy;
begin
FItems.Free;
// FPrintPage.Free;
inherited;
end;
procedure TMulitiTitlePrintPage.SetItems(Value : TTreeNodes);
begin
FItems.Assign(Value);
end;
procedure Register;
begin
RegisterComponents('COM', [TMulitiTitlePrintPage]);
end;
end.