D
delphifaq
Unregistered / Unconfirmed
GUEST, unregistred user!
关于class (TIExpert)
下面编写的加载型专家 为何定义的菜单加不到Delphi 3的IDE菜单上
所用变量等都已声名
Constructor TMyAddInExpert.Create;
begin
Inherited Create;
if Assigned(ToolServices) then
Try
MainMenuIntf:=ToolServices.GetMainMenu;
if Assigned(MainMenuIntf) then
Try
MenuItemIntf:=MainMenuIntf.FindMenuItem('Tools Menu');
if Assigned(MenuItemIntf) then
ry
CopyProject:=MenuItemIntf.InsertItem(0,'Copy Project...',
'CopyProject','ToolsCopyProject',integer(ShortCut(Ord('D'),[ssCtrl])),0,0,
[mfEnabled,mfVisible],CopyProjectClick);
MoveProject:=MenuItemIntf.InsertItem(0,'Move Project...',
'MoveProject','ToolsMoveProject',integer(ShortCut(Ord('M'),[ssCtrl])),0,0,
[mfEnabled,mfVisible],MoveProjectClick);
Finally
MenuItemIntf.Release;
End;
Finally
MainMenuIntf.Release;
End;
Except
// HandleException;//此句错在哪里?
end;
end;
另一问题
如何实现Delphi 3启动时 默认显示自己作的窗体、工程,而不是Form1,Project1
下面编写的加载型专家 为何定义的菜单加不到Delphi 3的IDE菜单上
所用变量等都已声名
Constructor TMyAddInExpert.Create;
begin
Inherited Create;
if Assigned(ToolServices) then
Try
MainMenuIntf:=ToolServices.GetMainMenu;
if Assigned(MainMenuIntf) then
Try
MenuItemIntf:=MainMenuIntf.FindMenuItem('Tools Menu');
if Assigned(MenuItemIntf) then
ry
CopyProject:=MenuItemIntf.InsertItem(0,'Copy Project...',
'CopyProject','ToolsCopyProject',integer(ShortCut(Ord('D'),[ssCtrl])),0,0,
[mfEnabled,mfVisible],CopyProjectClick);
MoveProject:=MenuItemIntf.InsertItem(0,'Move Project...',
'MoveProject','ToolsMoveProject',integer(ShortCut(Ord('M'),[ssCtrl])),0,0,
[mfEnabled,mfVisible],MoveProjectClick);
Finally
MenuItemIntf.Release;
End;
Finally
MainMenuIntf.Release;
End;
Except
// HandleException;//此句错在哪里?
end;
end;
另一问题
如何实现Delphi 3启动时 默认显示自己作的窗体、工程,而不是Form1,Project1