国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

創(chuàng)建一個簡單的"專家"

2019-11-18 17:57:51
字體:
供稿:網(wǎng)友

這個單元可以編譯到一個包中,之後它可以出現(xiàn)在Delphi的幫助菜單中。

注:在Interface的uses 語句中加入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
  
{當(dāng)單擊菜單項(xiàng)時,執(zhí)行這段代碼}
  
ShowMessage('Hello SwissDelphiCenter Simple Expert.');
end;

function TSDCSimpleExpert.GetIDString: string;
begin
  
{唯一"專家"標(biāo)識符}
  
Result := 'SwissDelphiCenter.SimpleExpert';
end;

function TSDCSimpleExpert.GetMenuText: string;
begin
  
{菜單項(xiàng)的標(biāo)題}
  
Result := 'SwissDelphiCenter Simple Expert';
end;

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

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



上一篇:RS232串口通訊模塊

下一篇:創(chuàng)建具有托盤的服務(wù)程序

發(fā)表評論 共有條評論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
學(xué)習(xí)交流
熱門圖片

新聞熱點(diǎn)

疑難解答

圖片精選

網(wǎng)友關(guān)注

主站蜘蛛池模板: 东方市| 阜阳市| 漳浦县| 毕节市| 肥东县| 田林县| 安宁市| 诸暨市| 和静县| 嘉义市| 和硕县| 夏河县| 永泰县| 信丰县| 商水县| 新邵县| 青川县| 莱芜市| 北京市| 涡阳县| 贵阳市| 石阡县| 交口县| 铜山县| 当雄县| 霍林郭勒市| 噶尔县| 沾益县| 五指山市| 合阳县| 三都| 宿州市| 郴州市| 延川县| 连平县| 嘉善县| 成都市| 石嘴山市| 临邑县| 宁陕县| 彰化市|