Re: RE: PictureButton background color

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu