Previous Up Next

_SETwindowTransparency
Set the transparency values of a window.
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 window transparency.
If an ObjContainer is added to the window, please use _SETcontainerTransparency instead.

ObjWin _SETwindowTransparency (
ObjWin _window_
I _color_
I _alpha_factor_
I _flags_
)
Required

scol 4.5 or above
Parameters

_window_
any window, 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 window. 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
_SIMULATEwindowTransparency (or _SIMULATEcontainerTransparency) in order to get an idea of the transparent items behaviour, running with 95/98/ME.