简体   繁体   English

Delphi 的增强模块

[英]Enhancement modules for Delphi

Embaradaro Help mentions Enhancement modules, but I can find no other material for them. Embaradaro Help 提到了增强模块,但我找不到其他材料。 I want to reassign the Debug functions (Step In, Step over etc.) to different keys, and it sounds like it may be possible with enhancement modules.我想将调试功能(Step In、Step over 等)重新分配给不同的键,听起来增强模块可能是可能的。 Can anyone point me to more information?谁能指出我更多的信息?

Embarcadero does not document how to create new "Enhancement modules". Embarcadero 没有记录如何创建新的“增强模块”。 All it does say is the following:它确实说的是以下内容:

Enhancement modules are special packages that are installed and registered and use the keyboard binding features that can be developed using the Open Tools API .增强模块是安装和注册并使用可使用 Open Tools API 开发的键盘绑定功能的特殊包。 You can create enhancement modules that contain new keystrokes or apply new operations to existing keystrokes.您可以创建包含新击键或将新操作应用于现有击键的增强模块。 Once installed, the enhancement modules are displayed in the Enhancement modules list box.安装后,增强模块将显示在增强模块列表框中。 Clicking the check box next to the enhancement module enables it and unchecking disables it.单击增强模块旁边的复选框将启用它,取消选中将禁用它。 Key mapping defined in an installed and enabled enhancement module overrides any existing key mapping defined for that key in the key mapping module that is currently in effect.在已安装并启用的增强模块中定义的键映射会覆盖当前有效的键映射模块中为该键定义的任何现有键映射。

When it comes to the OpenTools API, you usually have to rely on 3rd party documentation.谈到 OpenTools API,您通常必须依赖 3rd 方文档。 For instance, have a look at this blog article by Cary Jensen:例如,看看 Cary Jensen 的这篇博客文章:

Creating Editor Key Bindings in Delphi 在 Delphi 中创建编辑器键绑定

There is a powerful but little known feature of the code editor in Delphi and that permits you to add your own custom keystrokes. Delphi 中的代码编辑器有一个强大但鲜为人知的功能,它允许您添加自己的自定义击键。 This feature is referred to as custom key bindings and it is part of the Delphi open tools API (OTA).此功能称为自定义键绑定,它是 Delphi 开放工具 API (OTA) 的一部分。 The open tools API provides you with a collection of classes and interfaces that you can use to write your own extensions to the IDE.开放式工具 API 为您提供了一组类和接口,您可以使用这些类和接口编写自己的 IDE 扩展。

This article provides you with an overview of this interesting feature, and demonstrates a simple key binding class that you can use as a starting point for creating your own custom key bindings.本文概述了这个有趣的特性,并演示了一个简单的键绑定类,您可以将其用作创建自己的自定义键绑定的起点。
... ...

I gave up on the Embarcadero Key Bindings but found a very good substution.我放弃了 Embarcadero Key Bindings,但找到了一个非常好的替代品。 I installed keyremapper and, with a simple setup, managed to map F9, F10, F11, and F12 to the four left-most function keys.我安装了 keyremapper,并通过简单的设置成功地将 F9、F10、F11 和 F12 映射到最左边的四个功能键。 Now I can debug without doing the old cross-hand keyboard stuff.现在我可以在不做旧的交叉手键盘的情况下进行调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM