That's true.
You can trap return 'true' after frmTitleSelectEvent (for PalmOS 3.5+) and
keyDown event with chr = vchrMenu to prevent from menu toi appear.
But it should be OK with resource ID=0.
In PalmOS reference guide (SDK 4.0) we can read (page 263):
menuRscId ID number of a menu bar to use if the form
has a menu, or zero if the form doesn�t have a
menu.
I assume that FrmSetMenu just updates menuRscId item in FormType, while the
documentation is not clear about that. Can you check if menuRscId is cleared
after FrmSetMenu(..., 0) ?
It not, it might be a PalmOS bug.
Michael
-----Original Message-----
From: Max Bian [mailto:[EMAIL PROTECTED]]
Sent: Monday, 14 January 2002 7:13 AM
To: Palm Developer Forum
Subject: Re: Can we remove a menu from a form?
If I remember it correctly, you may trap the related events and return
handled=true. No menu will be displayed, although the resources are still
there.
There could be better ways to do the same.
Max
--- John Leung <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> During the runtime of a program, we can dynamically assign a menu to a
> form by using FrmSetMenu. But what if later on, we wish to remove
> that menu from the form. Is there any way we can do that? I tried
> giving FrmSetMenu a zero menu resource ID, but it doesn't work.
> Anyone have any ideas?
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please
> see http://www.palmos.com/dev/tech/support/forums/
=====
-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-
Got Palm?
Get ExBox at http://www.weirdwww.com/ExBox to beam anything!
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/