Hi Ron,

You need to jump through a few hoops to get this working correctly.

It doesn't work as is, because the OS can't find your bitmap id 1234 (your
app database ain't open). So what you need to do is create a seperate
database with your bitmap in it, and ensure it's open all the time
(dmModeLeaveOpen). You also need to use a bitmap ID that is reasonably
unlikely to appear in any other open database. There are a few more things
you need to do, but that's the guts of it. We almost need a registry for
this sort of thing as there are already a few apps out there using this
technique. FWIW, I'm currently using id's 7531, 7535, 7537, 7539, 7541,
7543, 7545.


Happy to share code if you want - contact me offlist.


Cheers,
Gavin.

Ron Nicholson <[EMAIL PROTECTED]> wrote in message
news:112313@palm-dev-forum...
>
> 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