即当我按下Delphi的Ctrl+F9时执行我写的一段代码。
解决方案 »
- 广州亿程交通信息有限公司--兄弟们有谁知道具体情况?
- 使用messagedlg时出现的问题!
- 快捷键的问题
- 征求:用程序把ACCESS数据导入SQL中的好办法
- 我delphi里的tip不见了
- webservices 中连接数据库(oracle9i)
- clientdataset怪问题!!!
- 怎么样才能取消上网自动填入密码
- 有关窗体在不同分变率的显示问题?可烦了?
- 急用!!!请问谁会使用API中的GetfileinformationByHandle这个函数?请帮忙!!!
- 为什么我用odac后编译程序出现DBAccess.res没找到的错误!
- 文件流的问题,执行 CopyFrom 时死机(当Copy大文件时)!
运行完后再调用原来编译功能。
运行完后再调用原来编译功能。
/////////
这样也行??? 我怎么没有想到。。
/////
呵呵。。
表问我怎么做,我也不会……^_^
IOTAEditActions.CompileProject参考
http://access911.net/appraise.asp?recordid=72FAB11E16DCE7F3&type=aunit EagleBufferList; interface procedure Register; implementation uses Windows, Classes, SysUtils,Menus, ToolsAPI, Controls ; type
TBufferList = class(TNotifierObject, IUnknown, IOTANotifier,
IOTAKeyboardBinding)
function GetBindingType: TBindingType;
function GetDisplayName: string;
function GetName: string;
procedure BindKeyboard(const BindingServices: IOTAKeyBindingServices);
protected
procedure CodeCompletion(const Context: IOTAKeyContext; KeyCode: TShortcut;
var BindingResult: TKeyBindingResult);
end;
resourcestring
sBufferList = 'Eagle''s Buffer List'; //register this key binding
procedure Register;
begin
(BorlandIDEServices as IOTAKeyBoardServices).AddKeyboardBinding(TBufferList.Create);
end; { TBufferList }
//the code to bind key
procedure TBufferList.BindKeyboard(const BindingServices: IOTAKeyBindingServices);
begin
BindingServices.AddKeyBinding([ShortCut(Ord('P'), [ssShift, ssCtrl, ssAlt])], CodeCompletion, Pointer(csCodeList or csManual));
BindingServices.AddKeyBinding([ShortCut(Ord('O'), [ssShift, ssCtrl, ssAlt])], CodeCompletion, Pointer(csParamList or csManual));
end; //do code completion
procedure TBufferList.CodeCompletion(const Context: IOTAKeyContext;
KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
begin (Context.EditBuffer.TopView as IOTAEditActions).CodeCompletion(Byte(Context.Context));
BindingResult := krHandled; end; function TBufferList.GetBindingType: TBindingType;
begin
Result := btPartial;
end; function TBufferList.GetDisplayName: string;
begin
Result := sBufferList;
end; function TBufferList.GetName: string;
begin
Result := 'EagleKing.BufferList'; //do not localize
end; end.