COM ActiveX   3GL   4GL

. , .

, . Delphi, . . ? . , :
- , ;
- , Delphi ActiveX;
- , ; - ;
- , , Delphi, .
, , . . , . , :
- , ; - , ;
- ;
- (, -);
- ( ):
 ;
 () ;
 , ;
 ;
 Delphi;
 . .

, , VCL Delphi. , (. 6). . 2.9.
2.9. VCL



TObject

, , . TObject , , ,

TComponent


TGraphicControl

, . . .

TWinControl

, .

TCustomControl

TWinControl (). Paint.

TCustomClassName

, published, . . , -, . , ClassName

TComponentName

-, VCL Delphi. , - Delphi,


, -, Delphi .

, - . . () Delphi, (Component Expert). Delphi Component/New Component (/ ). , . 2.13.

 2.13
. 2.13.
. , Ancestor type - . VCL. , , TButton. TButton. Class Name . TMyButton. , Delphi - ( TButtoni). Palette Page , . , Delphi samples. Unit file name Search path Delphi , . . , . 2.14.

 2.14
. 2.14.
, Delphi . 2.7.

2.7
unit MyButton;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls; type
TMyButton = class(TButton)
private
{ Private declarations }
protected
{ Protected declarations } public
{ Public declarations } published
{ Published declarations } end;
procedure Register; implementation procedure Register; begin
RegisterComponents('Samples', [TMyButton]); end;
end.


, . , . , , , TButton. (. "- " 1). . .
: (static), (virtual), (dynamic) - (message). , .

Delphi. Delphi , Delphi . , (overload).
, , .
:
type
TComponent = class
procedure MyProcedure;
end;

, MyProcedure . TObject class. , TObject.

, , , Delphi ( ). , Delphi (Virtual Method Table), . , . , , , .
:
type
TComponent = class
procedure MyProcedure; virtual;
end;

MyProcedure - .

, . - . , -, (Dynamic Method Table), , . , ( ). , , . . .
:
type
TComponent = class
procedure MyProcedure; dynamic;
end;

-
- , . , - Windows. -:
type
TComponent = class
procedure MyProcedure(Var A: TMessage); message wm_MessageWindows;
end;

message ( wmjfessagewindows), Windows, MyProcedure.
(overriden) (abstract).

() () . , . :
type
TComponentChild = class (TComponentParent)
procedure MyProcVirtual; override;
procedure MyProcDynamic; override;
end;

override . ( ).
virtual dynamic override, .
- .

. , , . -. :
procedure MyProcedure; virtual; abstract;


, . . , . EAbstractError.

, .

  COM ActiveX   3GL   4GL

, --, Class-responsibility-collaboration - -- - - , :
- - - , ;
- - - , .
{DATA}




 10.11.2021 - 12:37: - Personalias -> WHO IS WHO - - _.
10.11.2021 - 12:36: - Conscience -> . ? - _.
10.11.2021 - 12:36: , , - Upbringing, Inlightening, Education -> ... - _.
10.11.2021 - 12:35: - Ecology -> - _.
10.11.2021 - 12:34: , - War, Politics and Science -> - _.
10.11.2021 - 12:34: , - War, Politics and Science -> . - _.
10.11.2021 - 12:34: , , - Upbringing, Inlightening, Education -> , - _.
10.11.2021 - 09:18: - New Technologies -> , 5G- - _.
10.11.2021 - 09:18: - Ecology -> - _.
10.11.2021 - 09:16: - Ecology -> - _.
10.11.2021 - 09:15: , , - Upbringing, Inlightening, Education -> - _.
10.11.2021 - 09:13: , , - Upbringing, Inlightening, Education -> - _.
Bourabai Research -  XXI Bourabai Research Institution