I have problems hiding a menu item using MenuHideItem(). Context: In response to the menuOpen event, I'd like to dynamically create a pulldown menu.
In Constructor, I have created a pulldown menu containing one single item which serves as a placeholder. When handling menuOpen, I use the placeholder's id to tell MenuAddItem() where to add the dynamic items. Once I'm done adding, I hide the placeholder using MenuHideItem(). This works fine on the emulator, but not on real devices. On real devices, MenuHideItem() correctly the menu height to be reduced by the hidden item's height. But the dynamically added items are drawn as if the hidden item weren't, i.e. one line too low; the last dynamically added item isn't drawn at all consequently. Instead of this: ---------- | Item 1 | | Item 2 | | Item 3 | -------- - , I get this ---------- | | | Item 1 | | Item 2 | ---------- There is an empty line where the placeholder would be if it weren't hidden. And the last item isn't drawn. If the placeholder is a separator, the items are drawn a separator's height too low, i.e. Item 3 is only half visible. Is this a known bug in MenuHideItem()? Is there a better approach to what I'm trying to achieve? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
