Blending buttons into the background

Started by Mark25, June 21, 2016, 11:23:17 AM

Previous topic - Next topic

Mark25

Hi,

can you tell me how to get the 3D buttons to blend into the background?  Right now the rectangular outline if you will of the button is showing white on my gray background.  My background is not solid though.

Kind regards

Mark

Administrator

Hello,

please, check the section "Surface transparency" of the tutorial "How to manage alpha channel transparency" which explains how to achieve the best possible result.
It's important to note that when transparency is in use the time needed to render each button is slightly longer. It's also important to note that, as specified inside the "SPECIAL NOTES" of the "How to speed up buttons rendering" tutorial:

- Buttons with alpha channel transparency (set through the SurfaceTransparentFactor property or SetTotalTransparentFactor method) will not be stored in cache.
- If controls are placed inside a form with a background picture, the caching system will not be effective: controls need to anti-alias their external border with the underlying portion of the picture so each control will have a different bitmap: if you need a fast rendering speed avoid the use of background pictures in your forms or, in alternative, set the UseAntialiasing property to FALSE and the SurfaceTransparentFactor property to 0.

Hope this helps.

Kind Regards

Severino Delaurenti
MultiMedia Soft