Delphi深度探索_编辑器增强功能.docVIP

  • 1
  • 0
  • 约9.93千字
  • 约 15页
  • 2021-03-20 发布于山东
  • 举报
.word 可编辑 . Delphi 深度探索 - 编辑器增强功能 在 Delphi5 中的 Open Tools API 相对于 Delphi4 中添加了许多新特性 ,最大的改变就是公开了编辑器的接口 ,这给我们提供了一个机会来增强编辑器的功能 ,下面提供了一个例子演示如何增强编辑器的功能 ,例子扩展了剪切删除键的功能使之能够选择并删除当前光标所在处的单词 。 要想实现上面提到的功能 ,我们需要实现 IOTAKeyboardBinding 接口,类的声明如下 : TCutCopyEnhancer = class(TNotifierObject, IOTAKeyboardBinding private procedure BuildSelection (Context: IOTAKeyContext; public procedure Proc (const Context: IOTAKeyContext; KeyCode: TShortCut; var BindingResult: TKeyBindingResult; function GetBindingType: TBindingType; function GetDisplayName: string; function GetName: string; procedure BindKeyboard(const Bind

文档评论(0)

1亿VIP精品文档

相关文档