Type
TEditEx=class (TEdit)
Private
M_Ver: string;
Protected
Public
The constructor Create (Owner: TComponent); The phrase "; Virtual;
The property MyVer: string read m_Ver;
Published
end;
Constructor TEditEx. Create (Owner: TComponent);
The begin
Inherited the Create (the Owner);//initialize the inherited part of the
Text:='test';
M_Ver:='1.0';
end;
Is can be created dynamically in code, but drag components to have no effect on the interface, how is this to return a responsibility excuse me?
CodePudding user response:
There is no effect
CodePudding user response:
To do inherit control from TCustomEdit inheritance is better,
CodePudding user response: