Hi, 
thank you first for the info. Is it enough if I open the database every time
I receive the notification with a DmOpen call(if it isn't open already)? 

And something else, what number would you use for the bitmap? What numbers
does the system, use for its field,... bitmaps, and is there still something
free in this range maybe?
Thanks in advance
Tam Hanna

Ben Combee wrote
> 
> At 01:36 PM 12/25/2004, you wrote:
> >Hi,
> >I am calling MenuCmdBarAddButon outside of my app(in response to a
> >notification) in order to add a button to the command bar. When I open
> the
> >command bar in my own Application, the Bitmap gets shown. When another
> App
> >is active, however, an empty bitmap is shown in the command bar.
> >What can I do to fix this?
> >Here is the sample code:
> >
> >MenuCmdBarAddButton(menuCmdBarOnRight,1101,menuCmdBarResultNotify,appFile
> Cre
> >ator,"String");
> 
> The problem is that your application database isn't open and in the
> resource ID chain when the toolbar is displayed.  It's trying to do a
> DmGetResource('tbmp', 1101), but your app isn't around to provide that
> bitmap.
> 
> Think of ways to
> 
> 1) use a bitmap ID that's not going to conflict with the active
> application
> 2) leave your app database or another resource database open and in the
> resource chain.
> 
> >In addition, is it ok to use my creator ID as ID for the notification?
> 
> It should be.
> 
> -- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
>     "Combee on Palm OS" weblog: http://palmos.combee.net/
>     Developer Forum Archives:   http://news.palmos.com/read/all_forums/
> 



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

Reply via email to