胡
胡鸣
Unregistered / Unconfirmed
GUEST, unregistred user!
继承了DBGridEh派生一个新控件,在新控件中定义了一个方法,但调用时找不到自定义方法ADOAdd,请问哪个地方错了?unit mygrid;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, DBGridEh, ExtCtrls, GridsEh,forms;type MyGrid = class(TDBGridEh) private { Private declarations } protected public constructor Create(AOwner: TComponent);override; procedure ADOAdd;//自定义方法 { Public declarations } published end;procedure Register;implementation{$R *.res}constructor MyGrid.Create(AOwner: TComponent);begin inherited Create(AOwner); Invalidate;end;procedure mygrid.ADOAdd;begin//codeend;end.