At 10:57pm -0800 99-11-16, Palm Developers Forum List wrote:
>Date: 16 Nov 1999 10:51:23 -0800
>From: GuangHe Pan <[EMAIL PROTECTED]>
>Subject: Question about Standard Menus
>
>Those built in application such as Address, Expense, MemoPad etc
>no actual code to support standard Cut, Copy, Paste, ... menus.
>
>But in the Tutorials MemoPad, codes are required to support Cut, Copy,...'s
>performance.
>
>If I remove the support code from Tutorials MemoPad or my own code like
>those built in applicaitons did, it doesn't work. so I wonder there exists
>some associated header files or settings in those built in applications.
>
>Any idea about this?
If the command ids of the standard edit items matches what's defined
in UIResources.h (file name from the 3.5 SDK), then the system will
automatically handle these commands for you. The defined set is:
#define sysEditMenuUndoCmd 10000
#define sysEditMenuCutCmd 10001
#define sysEditMenuCopyCmd 10002
#define sysEditMenuPasteCmd 10003
#define sysEditMenuSelectAllCmd 10004
#define sysEditMenuSeparator 10005
#define sysEditMenuKeyboardCmd 10006
#define sysEditMenuGraffitiCmd 10007
One additional benefit to using "standard" edit menu command ids is
that the OS (starting w/3.5) may automatically append some additional
text services at runtime. Currently this is only enabled for Japanese
(where the two text services are "Add word to FEP user dictionary",
and "Lookup word in JEDict"), but the plan is to extend this in the
future.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200 (direct) +1 408-261-7550 (main)