On Fri, 19 Mar 1999, Scott Johnson wrote:
> David Fedor wrote:
> > However, I'm fairly certain that there haven't been any guarantees
> > that this particular behavior will continue to work in the future.
> > In the absence of official blessing and documentation [...]
>
> Question from the floor: how official is this blessing? --
> (Developing Palm OS 3.0 Applications, Part I, page 143)
>
> When FrmHandleEvent receives...
> -------------------------------
> menuEvent
>
> FrmHandleEvent performs these actions...
> ----------------------------------------
> Checks if the menu command is one of the system edit
> menu commands. The system provides a standard edit
> menu which contains the commands Undo, Cut, Copy,
> Paste, Select All, and Keyboard. FrmHandleEvent responds
> to these commands.
This bit of documentation prompted my question.
And I found that while looking at what certification tests are for the
platinum palm computing logo, and it wanted an edit menu with certain
things in it.
If Palm really wants all apps to work alike (e.g. all have an edit menu
with the same functions), it would help a lot to make the "standard"
easier to do than an aberrant version.
In my case, I would have had a text dialog without any edit menu, but I
really wanted to have a paste function (so you could select/copy main text
and paste it into a search text field). But I didn't want yet another
handler for a minor dialog, and FrmDoDialog worked fine. Simply adding
the menu resource with the standard system edit values allowed me to do
this without any lines of code (but with a change to pilrc from an error
to a warning for an out of range above 10000).
So my code is much closer to the ideal since that dialog box with a text
field has a full edit menu, and I didn't have to alter anything except the
resource definition. Also the main routine now has a fuller and more
standard edit menu.
The only minor deviation to an applicable standard is I want to access all
four fonts on an OS 3.0 plus device, so I can't use the standard font
dialog since it only has three fonts.