Can the simulator cope with the bar code scanners? regards,
Dave Mottorn -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Fedor Sent: Tuesday, March 05, 2002 4:17 PM To: Palm Developer Forum Subject: Re: Changing Menus on the fly >...if you're willing to create a new MenuBarType structure, populate it, >and keep it resident in memory, you can use >DmAttachResource/DmDetachResource combined with FrmSetMenu to dynamically >tweak your in-memory menubar, and then copy it to a resource and display >it...don't think this is technically illegal in the brave new Palm OS 5 >world, because I'm only accessing menubar internals before calling >FrmSetMenu, but it does require a lot of resource mucking. It should be fine in Palm OS 5, so long as you're sure you're just dealing with creating the resource and not looking at the contents of the menu object in memory once you've passed it to FrmSetMenu. The distinction is that you can add/delete/change resources, as if they were built into your PRC. But just don't assume that the in-memory, active format for the object is the same as in the resource. Of course, I strongly suggest that you try out your stuff on the Palm OS 5 Simulator, which is available in the resource pavilion... http://www.palmos.com/dev/programs/pdp/login.html That'll tell you for sure if what you're doing is future-proof or not. -David Fedor PalmSource, Inc. -- 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/
