A
Adnil
Unregistered / Unconfirmed
GUEST, unregistred user!
困扰已久。
TForm1 = class(TADWizardDialog)
public
class function Execute(AOwner: TComponent): integer
virtual;
end;
class function TForm1.Execute(AOwner: TComponent): integer;
var
Form: TForm1;
begin
Form := TForm1.Create(AOwner)
//这里如何调用TForm1的子类?
with Form do
try
ShowModal;
finally
Release;
end;
end;
TForm2 = class(TForm1)
Form2:TForm2;
Form2.Execute(Self)执行的时候显示的是Form2,而不是Form1,有办法吗?
TForm1 = class(TADWizardDialog)
public
class function Execute(AOwner: TComponent): integer
virtual;
end;
class function TForm1.Execute(AOwner: TComponent): integer;
var
Form: TForm1;
begin
Form := TForm1.Create(AOwner)
//这里如何调用TForm1的子类?
with Form do
try
ShowModal;
finally
Release;
end;
end;
TForm2 = class(TForm1)
Form2:TForm2;
Form2.Execute(Self)执行的时候显示的是Form2,而不是Form1,有办法吗?