Previous Up Next

_SETcontainerTransparency
Set the transparency values of a container.
The transparency can be processed with a transparency color or with an alpha blending factor.

You must add the WN_TRANSPARENCY flag to the window creation (_CRwindow) in order to process the container transparency.

ObjContainer _SETcontainerTransparency (
ObjContainer _container_
I _color_
I _alpha_factor_
I _flags_
)
Required

scol 4.5 or above
Parameters

_container_
container (associated window must be created with WN_TRANSPARENCY flag)
_color_
24bits transparency color (can be nil)
_alpha_factor_
alpha blending factor [0 - 255] (can be nil)
_flags_
flags :
WN_TRANS_COLOR enable color transparency
WN_TRANS_ALPHA enable alpha blending
Return value

same container. returns nil if an error occurs.
Important

Windows 95/98/ME are not able to internaly process the window transparency, so the transparency has to be simulated.
2000/XP programers can use
_SIMULATEcontainerTransparency in order to get an idea of the transparent items behaviour, running with 95/98/ME.