TRANSPARENT Property

 

Specifies whether the background of a GUI object should be transparent

 

 

Description:

 

Using this property "blends" the control and associated text with the window's background colour. In effect, it overrides any BACKCOLOR that was declared for the control.

 

The image below demonstrates the difference when the TRANSPARENT property is enabled or disabled for a LABEL control

 

Transparent Property

 

Syntax:

 

    DEFINE <control type> <cControlName>

 

        [ ... Other Control Properties ... ]

 

        [ TRANSPARENT <lValue> ]

 

    END <control type>

 

Valid For Use With:

 

    ANIMATEBOX

    BUTTON

    CHECKBOX

    CHECKBUTTON

    COMBOBOX

    CONTEXTMENU

    DEFINE CONTROL CONTEXT MENU

    DEFINE DROPDOWNMENU OWNERBUTTON

    FRAME

    GRID

    IMAGE

    LABEL

    MAINMENU

    NOTIFYMENU

    RADIOGROUP

    TAB

    TREE

    TOOLBAR

 

Notes:

  1. This property can be declared for other controls but is ignored as it is not applicable to them. These include; DATEPICKER, EDITBOX, HYPERLINK, IPADDRESS, LISTBOX, MONTHCALENDAR, PLAYER, PROGRESSBAR, RICHEDITBOX, SLIDER, SPINNER, SPLITBOX, STATUSBAR, TEXTBOX, TIMER and TIMEPICKER

  2. The original version of the help file for this item can be viewed here.

Properties:

 

The following Property is only available when the Window is being defined

 

lValue Logical D Sets specified Controls to have a transparent background

 

D - Properties of this type can be used when defining a Window

R - Properties of this type can only be accessed (read) after the Window has been defined

W - Properties of this type can be changed (write) after the Window has been defined

 

See GETPROPERTY and SETPROPERTY functions for further infomation on accessing or changing properties or use semi-OOP syntax

 

Sample Code:

 

Sample code to test this Property can be found here