unit DdhSuper; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs; {$R *.DCR} type TDdhSuperNothing = class(TCustomControl) public constructor Create (Owner: TComponent); override; published property Width default 200; property Height default 200; property Align; property Color; property DragMode; property ShowHint; property Visible; property Enabled; property OnClick; property OnDblClick; property OnMouseDown; property OnMouseUp; property OnMouseMove; property OnDragDrop; property OnDragOver; property OnEndDrag; property OnStartDrag; end; procedure Register; implementation constructor TDdhSuperNothing.Create (Owner: TComponent); begin // call parent class constructor first inherited Create (Owner); // set the size Width := 200; Height := 200; // set special styles ControlStyle := [csAcceptsControls, csFramed, csFixedWidth, csFixedHeight]; end; procedure Register; begin RegisterComponents('DDHB', [TDdhSuperNothing]); end; end.