"Fackerz", Writing bitmaps to the screen? That's got to be one of the easiest things to do on a Palm. When a bitmap is in a resource file (and you have to do those right, plus remember that there is a limit to resource bitmap size), you need to do this (freebie alert): void UiPaintBitmapResource (WinHandle destWin, Coord x, Coord y, DmResID id) { MemHandle h; BitmapType *bmP; WinHandle oldWin; h = DmGetResource (bitmapRsc, id); if (h) { bmP = (BitmapType *) MemHandleLock (h); if (bmP) { oldWin = WinSetDrawWindow (destWin); WinPushDrawState (); WinSetForeColor (ColorGetBlackIndex (FeaturesGetScreenDepth ())); WinSetBackColor (ColorGetWhiteIndex (FeaturesGetScreenDepth ())); WinPaintBitmap (bmP, x, y); WinPopDrawState (); WinSetDrawWindow (oldWin); MemHandleUnlock(h); } DmReleaseResource(h); } } Your problem is finding the information. There are tons of it, and most of it drenched in noise. The bible: Palm OS Programmer's Reference. Everything else qualifies as noisier though worth wading through when the former doesn't have it. My rant: as for Palm Inc. (not PalmSource) and their PluggedIn program, I suspect that these guys (management team included BTW) are on crack. I have seen more simulator crashes in the last 2 weeks than I have seen pigeons in the skies of China (and yes, there are pigeons in China, even in the skies). And that hardware... I bought an E2 1 month ago. It can almost qualify it as a piece of crap. Slower than my and less stable than my previous T/E (now, that was a good design). These guys have cut so many corners that even the stylus-built-in reset pin is now made of cheap (read easily bendable) plastic. Plastic... what's the deal with that? If you're going to build a less stable device, rule #1 of good design is: make it so easy to reset, hell, better yet: make it pleasurable, so much so in fact that your users won't mind the crashing as much. There's a feature request for them: disguise the "Reset" alert as a screensaver. And give us a nice metallic reset pin like we used to have. That would help. Rant aside, relax and just ask. == Alexandre Rousseau NinerPaint: http://www.ninerpaint.com
-- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ |
