在 Palm OS 应用程序中使用系统的标准编辑菜单

发布于 2024-07-06 09:31:24 字数 57 浏览 7 评论 0原文

如何在 Palm OS 应用程序中使用标准编辑菜单,而不必实现自己的剪切/复制/粘贴/键盘处理程序?

How can I use the standard Edit menu in my Palm OS application, instead of having to implement my own Cut/Copy/Paste/Keyboard handlers?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

睫毛溺水了 2024-07-13 09:31:24

Palm OS 的系统表单代码具有编辑菜单中命令 ID 的内置处理程序。 如果您对这些菜单使用标准形式,则具有不需要编写代码并且与寻找此特定菜单结构的系统扩展兼容的优点。

如果您的表单具有仅包含“编辑”菜单的菜单栏,则您可以在表单创建时指定菜单 ID 10000。

如果您的窗体有一个带有多个菜单的菜单栏,您应该使用 PilRC 表示法指定您的编辑菜单,如下所示:

PULLDOWN "Edit"
BEGIN
  MENUITEM "Undo" ID 10000 "U"
  MENUITEM "Cut" ID 10001 "X"
  MENUITEM "Copy" ID 10002 "C"
  MENUITEM "Paste" ID 10003 "P"
  MENUITEM "Select All" ID 10004 "S"
  MENUITEM "-" ID 10005
  MENUITEM "Keyboard" ID 10006 "K"
  MENUITEM "Grafitti Help" ID 10007 "G"
END

如果您使用构造函数,您可以使用“创建编辑菜单”命令将此菜单添加到您的资源文件中。

Palm OS's system form code had built-in handlers for the command IDs in the Edit menu. If you use a standard form for these menus, you have the advantage of not needing to write code and being compatible with system extensions that look for this particular menu construction.

If your form has a menubar that consists of just the "Edit" menu, you can specify menu ID 10000 at form creation time.

If your form has a menubar with several menus, you should specify your Edit menu like this, using PilRC notation:

PULLDOWN "Edit"
BEGIN
  MENUITEM "Undo" ID 10000 "U"
  MENUITEM "Cut" ID 10001 "X"
  MENUITEM "Copy" ID 10002 "C"
  MENUITEM "Paste" ID 10003 "P"
  MENUITEM "Select All" ID 10004 "S"
  MENUITEM "-" ID 10005
  MENUITEM "Keyboard" ID 10006 "K"
  MENUITEM "Grafitti Help" ID 10007 "G"
END

If you're using Constructor, you can use the "Create Edit Menu" command to add this menu to your resource file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文