unit myStatusBar;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls;
type
TmyStatusBar = class(TStatusBar)
private
{ Private declarations }
protected
{ Protected declarations }
public
constructor create(aowner:Tcomponent);override;
published
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Standard', [TmyStatusBar]);
end;
{ TmyStatusBar }
constructor TmyStatusBar.create(aowner: Tcomponent);
begin
inherited;
controlstyle:=ControlStyle+[csAcceptsControls,csOpaque];
end;
end.