Aaron,
Thanks so much. I've modified the program and now I get color icons in
Phlegm Hack. I'll e-mail Mitch and see if he can put this on his page =
:).
Mike McCollister
> -----Original Message-----
> From: Aaron Ardiri [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 12, 2000 4:37 AM
> To: Palm Developer Forum
> Cc: '[EMAIL PROTECTED]'
> Subject: Re: Color Icons
>=20
>=20
> > Aaron,
> >=20
> > I posted this question on the palm developers forum but=20
> have not received an
> > answer yet. I'm hoping that you might be able to answer this :).
>=20
> hehe.. i skip over a few postings - been busy.. did not see it :(
>=20
> > I am trying to modify Mitch Blevin's phlegm hack so that=20
> color and grayscale
> > icons will show up in the list. However, I don't know how=20
> to do this. I have
> > found that the source of the problem is here:
> >=20
> > resindex =3D DmFindResource(dbR, 'tAIB', 1001, NULL);
>=20
> DmOpenRef dbRef;
> UInt16 card;
> LocalID dbID;
> Coord x, y;
> MemHandle iconHandle;
>=20
> x =3D ...;
> y =3D ...;
> // set card + dbID using DmFindDatabase() or other call
>=20
> dbRef =3D DmOpenDatabase(card, dbID, dmModeReadOnly);
> iconHandle =3D DmGet1Resource('tAIB', 1001);=20
> WinDrawBitmap((BitmapType *)MemHandleLock(iconHandle), x, y);
> MemHandleUnlock(iconHandle);
> DmReleaseResource(iconHandle);
> DmCloseDatabase(dbRef);
> =20
> DmGet*() works only for the currently open database, so=20
> just open your
> "other" application using the DmOpenDatabase() call and=20
> close it after
> you have finished with the resource.
>=20
> cheers
>=20
> az.
> --
> Aaron Ardiri=20
> Java Certified Programmer http://www.hig.se/~ardiri/
> University-College i G=E4vle mailto:[EMAIL PROTECTED]
> SE 801 76 G=E4vle SWEDEN =20
> Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
> Mob: +46 70 656 1143 A/H: +46 8 668 78 72
>=20
> if you enjoy it, then it aint work :) - rule #106 of life
>=20
>=20
>=20
> --=20
> For information on using the Palm Developer Forums, or to=20
> unsubscribe, please see =
http://www.palmos.com/dev/tech/support/forums/
>=20
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/