TheLGM
Jun 17th, 2002, 02:06 AM
I recently created a user control, which basically contains 4 small image fields. I made the background of the control transparent.
The problem is this. Even though the control background is transparent, the areas inside the image boxes (which contain icons with transparency) is the background color of the control (white) This is what it looks like.
http://thelgm.bemanimn.com/problem1.gif
I played around with some settings, and made the control windowless. That seemed to work as you can see here
http://thelgm.bemanimn.com/problem2.gif
Now, normally I would rejoice, but I found an issue with that. This control is inside a scrolling picture box. When I scroll, the CPU gets maxed out -- so badly that the redraw rate stars to falter. Since I only used one control (anticipating there being 200+ in this scrolling picture box) and got these results, I would hate to see what happens when I get the picture box loaded up. Is there some way I can make the control look like the 2nd picture, but somehow forego the big processor requirement to draw it?
The problem is this. Even though the control background is transparent, the areas inside the image boxes (which contain icons with transparency) is the background color of the control (white) This is what it looks like.
http://thelgm.bemanimn.com/problem1.gif
I played around with some settings, and made the control windowless. That seemed to work as you can see here
http://thelgm.bemanimn.com/problem2.gif
Now, normally I would rejoice, but I found an issue with that. This control is inside a scrolling picture box. When I scroll, the CPU gets maxed out -- so badly that the redraw rate stars to falter. Since I only used one control (anticipating there being 200+ in this scrolling picture box) and got these results, I would hate to see what happens when I get the picture box loaded up. Is there some way I can make the control look like the 2nd picture, but somehow forego the big processor requirement to draw it?