Copyright © 2003-2005 MultiMedia Soft 
Return to index  
 
SetTotalTransparentFactor method 
 
Remarks 
Applies the same alpha channel transparency to all of the control's elements, including surface, pictures, texts and cells. 
The control transparency (if for example an underlying picture was changed) can be refreshed at any time using the RefreshTransparentControl method. 
Below you can see a transparent control whose SurfaceTransparentFactor property has been set to 130: as you can see, the caption text and the picture are displayed opaque. 
 
 
 
Below you can see the same transparent button after calling the SetTotalTransparentFactor method with the nFactor parameter set to 130: as you can see, also the caption text and the picture are now displayed in transparency as the control's surface. 
 
 
 
For further information about transparency see How to manage alpha channel transparency section. 
(Available only with Professional edition) 
 
Syntax 
 
[Visual Basic] 
Public Sub SetTotalTransparentFactor (nFactor as Short) as Bool 
 
[C#] 
public bool SetTotalTransparentFactor (short nFactor); 
 
[C++] 
public: bool SetTotalTransparentFactor (short nFactor); 
 
 
Parameter
Description
 
 
nFactor
The transparency factor. This value can range from 0 (total opacity) to 255 (total transparency).
 
Return value 
 
Value
Meaning
 
 
False
The call failed
True
The call was successful
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Copyright © 2003-2005 MultiMedia Soft 
Return to index