What the author (that's me) meant to say is "there is no documented API
that supports adding or removing menus, menu items...."
You might be able to hack the resources yourself, but that's not exactly
coding for compatibility.
What you can do quite legally is create multiple menu bar resources and then
switch between them as desired using FrmSetMenu()
- John Schettino
-----Original Message-----
From: Aaron Ardiri
To: Palm Developer Forum
Sent: 3/3/00 1:52 AM
Subject: RE: Menus on the fly
> "Palm OS Programming for Dummies" tells that :
>
> "you cannot add or remove menus to the menu bar, nor can you add,
> delete, or even modify menu items in a menu."
>
> I never tried... but i believe it's true !
well.. you should be able to edit the menu resource object directly
and remove one of the elements from the array that is there and then
explicitly tell the OS to update the menu?
unless of course the palmos always reads the menu definition from the
prc file :( can someone verify this?
cheers.
az.
--
Aaron Ardiri
Java Certified Programmer http://www.hig.se/~ardiri/
University-College i G�vle mailto:[EMAIL PROTECTED]
SE 801 76 G�vle SWEDEN
Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
Mob: +46 70 656 1143 A/H: +46 8 668 78 72
if you enjoy it, then it aint work :) - rule #106 of life
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html