Just a guess, I've never done it and will probably never do:

DmFindDatabase
if it fails:
{
DmCreateDatabase with resDB = true
DmOpenDatabase
DmNewResource
copy your bitmap resource from your main resource database into the new database, new resource chunk
DmCloseDatabase
}
DmDatabaseProtect


may be works, may be not.


Henk


Luc Le Blanc wrote:

Henk Jonas a �crit :


Look here, what I found on google, about it:

http://groups.google.de/groups?hl=de&lr=&ie=
TF-8&threadm=q4aZ9.10719%247y2.31261%40news-server.bigpond.net.au&rnum=1&prev=/groups%3Fq%3DMenuCmdBarAddButton%26hl%3Dde%26lr%3D%26ie%3DUTF-8%26selm%3Dq4aZ9.10719%25247y2.31261%2540news-server.bigpond.net.au%26rnum%3D1news:[EMAIL
 PROTECTED]



A posted solution would be interesting.


-- Luc Le Blanc





Did you ensure that your resource database is kept open?

Henk

Palm Developer Forum wrote:


Hi Guys

Got a bit of a problem here.

I have a program whick adds an icon to the command bar each time it is
created and carries-out some action when this icon is selected

The program works just fine if I use a predefined icon such as
BarSecureBitmap in the call to MenuCmdBarAddButton() but does not work

when


I use my own icon which I've included in the resource file. All I get on

the


command bar is a blank button.

According to PalmSource's documentation, it should be possible to

specify


your own resource ID when calling MenuCmdBarAddButton() but this doesn't
work and I can't figure-out why.

Do any of you guysa have any ideas?

Patrick




-- ------------------------------------------------------------------------- Henk Jonas Palm OS � certified developer

[EMAIL PROTECTED]                              www.metaviewsoft.de/palmos
-------------------------------------------------------------------------






--
-------------------------------------------------------------------------
Henk Jonas
Palm OS � certified developer

[EMAIL PROTECTED]                              www.metaviewsoft.de/palmos
-------------------------------------------------------------------------

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




-- ------------------------------------------------------------------------- Henk Jonas Palm OS � certified developer

[EMAIL PROTECTED]                              www.metaviewsoft.de/palmos
-------------------------------------------------------------------------


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

Reply via email to