home *** CD-ROM | disk | FTP | other *** search
- unit InheritedFormU;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- BaseFormU, ExtCtrls, StdCtrls;
-
- type
- TInheritedForm = class(TBaseForm)
- BtnDoSomething: TButton;
- procedure BtnDoSomethingClick(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- InheritedForm: TInheritedForm;
-
- implementation
-
- {$R *.DFM}
-
- procedure TInheritedForm.BtnDoSomethingClick(Sender: TObject);
- begin
- inherited;
- ShowMessage('Hey! This is an inherited from, installed by a custom package')
- end;
-
- initialization
- BaseFormClass := TInheritedForm
- finalization
- BaseFormClass := TBaseForm;
- end.
-