home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, Menus, ClassPlug, ExtCtrls;
-
- type
- TForm1 = class(TForm)
- Panel1: TPanel;
- Panel2: TPanel;
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- TDRemoteControl = class( TCustomControl )
- protected
- procedure WMSize(Var Message: TWMSize); message WM_Size;
- end;
-
- var
- Form1: TForm1;
-
- implementation
- {$R *.DFM}
-
- procedure TDRemoteControl.WMSize;
- begin
- Caption := '[OdiE -97] Width: '+ IntToStr( Width )+', Height: '+IntToStr(Height);
- end;
-
- initialization
- ReplaceParentClass(TPanel, TCustomControl, TDRemotecontrol);
- finalization
- ReplaceParentClass(TPanel, TDRemotecontrol, TCustomControl);
- end.
-