quot是什么意思:創建一個簡單的"專家"




=Title>這個單元可以編譯到個包中的後它可以出現在Delphi幫助菜單中

注:在Interfaceuses 語句中加入ToolsApi.

type
  
TSDCSimpleExpert = (TNotierObject, IOTAMenuWizard, IOTAWizard)
  public
    function 
GetIDString: ;
    function GetName: ;
    function GetState: TWizardState;
    procedure Execute;
    function GetMenuText: ;
  end;

procedure Register;

implementation

uses 
Dialogs;

procedure Register;
begin
  
RegisterPackageWizard(TSDCSimpleExpert.Create);{ 注冊\"專家}
end;

{ TSDCSimpleExpert }\"}

procedure TSDCSimpleExpert.Execute;
begin
  
{當單擊菜單項時執行這段代碼}
  
ShowMessage(\'Hello SwissDelphiCenter Simple Expert.\');
end;

function TSDCSimpleExpert.GetIDString: ;
begin
  
{唯\"專家\"標識符}
  
Result := \'SwissDelphiCenter.SimpleExpert\';
end;

function TSDCSimpleExpert.GetMenuText: ;
begin
  
{菜單項標題}
  
Result := \'SwissDelphiCenter Simple Expert\';
end;

function TSDCSimpleExpert.GetName: ;
begin
  
{“專家”名字}
  
Result := \'SwissDelphiCenter Simple Expert\';
end;

function TSDCSimpleExpert.GetState: TWizardState;
begin
  
Result := [wsEnabled];
end;


Tags:  htmlquot quot是什么 quot什么意思 quot是什么意思

延伸阅读

最新评论

发表评论