The following code snippet seems to work just fine while my app is
running.  The icon appears.  The button functions correctly.

> if ( sysNotifParmPtr->notifyType == sysNotifyMenuCmdBarOpenEvent ) {
>       where = menuCmdBarOnLeft;
>       bitmapId = 1234;
>       resultType = menuCmdBarResultNotify;
>       ...
>       err = MenuCmdBarAddButton( 
>               where, bitmapId, resultType, myNotifID, &name );
>       ...

But when called by the Notification Manager while another app is
running, the button seems be invisible, even though it still works
(sends notification myNotifID when the invisible button is hit, etc.).

Does anything special need to be done to make a MenuCmdBar button
icon resource visible?  (restrictions on bitmap type, or bitmapId?)
Does the OS open my app and look in it for resources during a
notification launch?  Or do I need to open the app manually before
calling MenuCmdBarAddButton()?


Thanks,

Ron Nicholson
HotPaw Productions
   <http://www.hotpaw.com/rhn/hotpaw>

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

Reply via email to