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.
Newlook Smartclient
Newlook Server
from version 11.0 for the command button, frame and smart nav group objects. Refer to Deprecated and Obsolete items for additional information.
This property can be used to override the default transparency of a control's background.
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) |
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.
MaskColor property | BackColor property | BackColor Inheritance
Command button control
Frame control
SmartNavGroup object
© 2004-2021 looksoftware. All rights reserved.