Aaron, --- Aaron Ardiri <[EMAIL PROTECTED]> wrote: > > I am trying to figure out how to create a brand new bitmap and replace > > an existing resource that is on my form. I know how to delete the > > existing bitmap resource and replace it with another bitmap resource > > but I don't know how to put a newly created bitmap in that resource. > > just a stab in the dark of 'maybe land' :) > > but, maybe when you delete the resource, and add a new - the database > index of the bitmap resource changes (index within the resource db). > now, depending on how forms are loaded/internally represented, maybe > they, on load - grab the index of the resources within the resource > database and store these.
That actually happened but I ended up doing this before the form is loaded so it works if I simply delete a bitmap resource and copy another into its place. > when you change the index, the index's will no longer be valid = problems. > > now, what i would do is this: > > - get access to existing resource DmGet1Resource() > - use DmResizeResource() to adjust it to the size of the new bitmap > - use DmWrite() to update the resource. > > and, that wont screw with any index's :) if it works, you owe me a > number of beers/shots/booze at the next palmsource event *g* It still did not make it work. I'll still looking. Mike > > --- > Aaron Ardiri [EMAIL PROTECTED] > CEO - CTO +46 70 656 1143 > Mobile Wizardry http://www.mobilewizardry.com/ > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please > see http://www.palmos.com/dev/support/forums/ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
