BackStyle Property

Gets or sets a style which determines if the control's background is transparent or opaque.

object.BackStyle = [value]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and value is a value or constant as described in Settings below.

Client support

Newlook Smartclient

Newlook Server

Version Support

Obsolete from version 11.0 for the command button, frame and smart nav group objects. Refer to Deprecated and Obsolete items for additional information.

Use

This property can be used to override the default transparency of a control's background.

Settings

The settings for value for the check box, label, menu button, option button, panel and picture box objects are :

Macro & Designer constant

Script constant

Integer Value

Description

BackOpaque

nlBackOpaque

0

(Default for all controls if the BackColor has been explicitly set in either Settings or Designer)

The background of the control is opaque.

BackTransparent

nlBackTransparent

1

(Default for all controls if BackColor has not been explicitly set in Settings or Designer)

The background of the control is transparent and will be inherited from the form. (Default for all controls if BackColor has not been set in Settings or Designer)

BE AWARE THAT:

If the BackStyle property is BackTransparent, then the BackColor property will inherit its value from the BackColor of the form or parent control. That said, it is important to note that the BackStyle property for a control will be automatically changed to BackOpaque if the BackColor of the control is explicitly changed, either in Graphical Settings or Designer.

See Also

MaskColor property | BackColor property | BackColor Inheritance

Applies To

Check box control

Command button control (Obsolete for this control from version 11 onwards)

Frame control (Obsolete for this control from version 11 onwards)

Label control

Menu button control

Option button control

Panel control

PictureBox control

SmartNavGroup object (Obsolete for this control from version 11 onwards)


© 2004-2021 looksoftware. All rights reserved.