> 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. 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* --- 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/
