H
hsgrass
Unregistered / Unconfirmed
GUEST, unregistred user!
下面的代码怎样理解?承继后,再复盖?
T2cccStringGrid = class(TStringGrid)
protected
function CreateEditor: TInplaceEdit
override;
function GetEditStyle(ACol, ARow: Longint): TEditStyle
override;
procedure EditListGetItems(ACol, ARow: Integer
Items: TStrings);
procedure EditButtonClick(Sender: TObject);
end;
TStringGrid = class(T2cccStringGrid)
// 可以正常使用
ttest2 = class(tbutton)
public
procedure Click
override;
end;
tbutton = ttest2
// 出現class tbutton not found
TForm1 = class(TForm)
StringGrid1: TStringGrid;
Edit1: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
T2cccStringGrid = class(TStringGrid)
protected
function CreateEditor: TInplaceEdit
override;
function GetEditStyle(ACol, ARow: Longint): TEditStyle
override;
procedure EditListGetItems(ACol, ARow: Integer
Items: TStrings);
procedure EditButtonClick(Sender: TObject);
end;
TStringGrid = class(T2cccStringGrid)
// 可以正常使用
ttest2 = class(tbutton)
public
procedure Click
override;
end;
tbutton = ttest2
// 出現class tbutton not found
TForm1 = class(TForm)
StringGrid1: TStringGrid;
Edit1: TEdit;
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private