°
°Ë´óɽÈË
Hi,
Thank you for your response. I really have some big problems in Transparent
control.
Can you help me?
1. Can you give me some detail information about double buffer transparent
control? I found that In .net FrameWork, SelectionUIService is implemented
by a double buffer transparent control, It can work.
2. I must set the parent control as ~WS_CLIPCHILDREN, the transparent
control can work. Because If I don't do it, Parent control will not repaint
the area occurred by transparent. The back ground of transparent Control
will not correct. But I don't think it is a good ideal.
3. What's different between SupportTranparentBackColor and Opaque. If I set
control as SupportTranparentBackColor And set the BackColor, It's
transparent also. I know control will not paint back ground if I set it as
Opaque. They can implement Transparent control all. But I don't know who is
the really transparent control and what the different between them.
Can you give me any information about them? Thank you very much.
Jerry
Thank you for your response. I really have some big problems in Transparent
control.
Can you help me?
1. Can you give me some detail information about double buffer transparent
control? I found that In .net FrameWork, SelectionUIService is implemented
by a double buffer transparent control, It can work.
2. I must set the parent control as ~WS_CLIPCHILDREN, the transparent
control can work. Because If I don't do it, Parent control will not repaint
the area occurred by transparent. The back ground of transparent Control
will not correct. But I don't think it is a good ideal.
3. What's different between SupportTranparentBackColor and Opaque. If I set
control as SupportTranparentBackColor And set the BackColor, It's
transparent also. I know control will not paint back ground if I set it as
Opaque. They can implement Transparent control all. But I don't know who is
the really transparent control and what the different between them.
Can you give me any information about them? Thank you very much.
Jerry
Stoitcho Goutsev (100) said:I think you have asked this before. You cannot use build-in double buffering
with transparent controls. You need to maintain you own bitmap and blend it
with the background. If you need really simple transparency (e.g
rounded-corner buttons) take a look at control's Region property
--
HTH
Stoitcho Goutsev (100) [C# MVP]
ControlStyles.StandardClick°Ë´óɽÈË said:HI,
I create a custom transparent control, set the style is
ControlStyles.DoubleBuffer, It display black background. How
to create a double buffer transparent control?
The ralative code is:
// in constructor
base.SetStyle(ControlStyles.DoubleBuffer ||
ControlStyles.Opaque, true);