那位大虾研究过ToolsAPI,烦请资料相送
解决方案 »
- fastreport 分栏问题 当需要分栏,且每个栏之间的宽度不一致时,fastreport 能否满足需求?
- 请问怎样把'string'数组赋值到'PWideChar'数组??
- 怎样把数据库中保存的文件,在客户端不生成文件而是在内存中直接打开?
- 关于URU指纹设备编程(100分不够再开贴!)
- 输入格式是:R+yyyy+mm+nnnn例如:R2004070001 该使用什么控件?
- 高手请进,有关事件处理的问题
- 用msscript.ocx如何来执行Run()。举个例子调用一个已经写好的函数。
- 谁知道flashwindow(handle,true);这一句是什么意思,做什么用的?
- 出租半间房间—在深圳南山区大冲
- 谁会控制EPSON TM-T88IIP打印机?
- 请问为一个软件做图片(程序图表、按纽图标)大概有30个图,应该要多少钱?
- 有关删除文件夹的问题?
This software is provided 'as-is', without any express or
implied warranty. In no event will the author be held liable
for any damages arising from the use of this software. This unit is free to use but the origin of this software
must not be misrepresented, you must not claim that you
wrote the original software. Feel free to use this component in your product including
commercial applications. If You alert this component's code to make it better,
please remember to tell me about it , let's to make it better
together. This attention may not be removed or altered from any source
distribution.
Feedback:
E-Mail: [email protected]
HomePage:http://myzeroworld.yeah.net Version 1.1
Remove some useless code.
Version 1.0
Initial Version.
} unit 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.