Re: RE: PictureButton background color
- Posted by Derek Parnell <ddparnell at bigpond.com> Sep 12, 2002
- 381 views
Yes, delete the bitmap then recreate it. Use the deleteObject(hBMP) call. 13/09/2002 12:28:17 AM, Jonas Temple <jktemple at yhti.net> wrote: > >Yeah, I figured as much. That's what I wound up doing and it seems to >work fine. However, I'm concerned that I might not be releasing >resources correctly. Should be bitmap be deleted before it's recreated? > If so, what function would I use? > >Thanks again Derek! > >Jonas - anxiously looking forward to next win32lib release.... >Derek Parnell wrote: >> Jonas, >> when the bitmap is drawn with transparency, the background at the time >> of drawing is shown instead >> of the designated transparency color. This is a once-off thing. It does >> not automatically get >> redrawn if the background is altered. >> >> What you have to do is recreate the button images whenever the >> background is altered. > > > > --------- Cheers, Derek Parnell ICQ# 7647806