ß@‚€†ÎÔª¿ÉÒÔ¾Ž×gµ½Ò»‚€°üÖУ¬Ö®ááËü¿ÉÒÔ³ö¬FÔÚDelphiµÄŽÍÖú²Ë†ÎÖС£
×¢£ºÔÚInterfaceµÄuses ÕZ¾äÖмÓÈëToolsApi.
type
TSDCSimpleExpert = class(TNotifierObject, IOTAMenuWizard, IOTAWizard)
public
function GetIDString: string;
function GetName: string;
function GetState: TWizardState;
procedure Execute;
function GetMenuText: string;
end;
procedure Register;
implementation
uses Dialogs;
procedure Register;
begin
RegisterPackageWizard(TSDCSimpleExpert.Create);{ ×¢ƒÔ"Œ£¼Ò}
end;
{ TSDCSimpleExpert }"}
procedure TSDCSimpleExpert.Execute;
begin
{®”†Î“ô²Ë†Îí—•r£¬ˆÌÐÐß@¶Î´ú´a}
ShowMessage('Hello SwissDelphiCenter Simple Expert.');
end;
function TSDCSimpleExpert.GetIDString: string;
begin
{Ψһ"Œ£¼Ò"˜Ë×R·û}
Result := 'SwissDelphiCenter.SimpleExpert';
end;
function TSDCSimpleExpert.GetMenuText: string;
begin
{²Ë†Î헵ĘËî}}
Result := 'SwissDelphiCenter Simple Expert';
end;
function TSDCSimpleExpert.GetName: string;
begin
{¡°Œ£¼Ò¡±µÄÃû×Ö}
Result := 'SwissDelphiCenter Simple Expert';
end;
function TSDCSimpleExpert.GetState: TWizardState;
begin
Result := [wsEnabled];
end;
