Returns or sets the coloring mode for a control.
object.Transparent [ = Boolean ]
object:Label, Frame, Image Ocx object
The Transparent property enables coloring of the background when it is set to 0. When set to 1 the control is not filled.
Transparent does not generate a redraw.
Together with BackColor an Image control can be given a transparent color.
A Frame created in code has the Transparent property set to 1 (True), but in the Form Editor the default value is 0 (False).
OpenW 1 : Win_1.BackColor = $00FFFF
Ocx Label lbl1 = "Non-transparent", 10, 10, 140, 14
Ocx Label lbl2 = "Transparent", 10, 30, 140, 14 : lbl2.Transparent = True
Do : Sleep : Until Win_1 Is Nothing
It is often necessary to invoke ZOrder to actually draw the Transparent control at the top of other controls.
{Created by Sjouke Hamstra; Last updated: 25/10/2014 by James Gaite}