Hi Ian

> I am writing an app where we want to dynamically build menus at runtime
> from scratch. The books I have consulted on the issue seem to indicate
> that this isn't possible, but they don't exactly say that. 

yes and no - until Palm OS 3.5 dynamic menu creating is not (legally) possible

> I have found that I could build a menu by creating a MenuBarType struct, filling it
> all in, calculating all the sizes and then feeding it into a
[...]

this method may work or not, especially with new Palm OS versions.
generally you should handle the system structures as private and not accessible.

if you have only a few different menues, the way to do it is to create a menu resource 
for each menu, and change the displayed menu.
or you could restrict your app. to >3.5 and use the dynamic menu functions.

by(e)
Stephan
-- 
PGP Fingerprint: 0090 E02F 39A8 F2AF 6A79 43D7 B847 C26D 108E E2F0
PGP PublicKey: http://www.unet.univie.ac.at/~a9526342/sveigl.asc

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to