>Does anyone know how to dynamically display bitmap familys on a form.
Here's something I use to display application icons. I don't see why
it won't work with families if you change the DmGet1Resource
parameters.
Regards,
Steve Mann
# # #
/***********************************************************************
* FUNCTION: DrawModuleIcon
*
* DESCRIPTION: Draw a bitmap resource on the screen. Assume
it's coming from
* the most recently-opened resource file. Otherwise, we need to
* use DmGetResource and have unique resource #s.
*
* RETURNED: nothing
***********************************************************************/
static void DrawModuleIcon
(
Coord x, // ( in ) the x coordinate
Coord y // ( in ) the y coordinate
)
{
MemHandle iconH = DmGet1Resource ( bitmapRsc, 1000 );
if ( iconH )
{
BitmapPtr iconP = MemHandleLock ( iconH );
if ( iconP )
{
WinDrawBitmap ( iconP, x, y );
MemPtrUnlock ( iconP );
}
DmReleaseResource ( iconH );
}
}
--
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461 805.784.9462 (fax)
[EMAIL PROTECTED] http://www.cdpubs.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/