Gets or sets the style of a control's border.
object.BorderStyle = [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.
Newlook Smartclient
Newlook Server
Not supported if Material skin is enabled.
A command button's BorderColor, BorderStyle and BorderWidth properties are ignored if the material skin is enabled. Under material design, command buttons are rendered with a consistent, flat back color and no border.
This property is used to determine whether a control will render with a border and, if so, the visual style of that border.
Setting a CommandButton's BackColor property will override the Raised BorderStyle value (if set), and render the control as a flat button. If you want a command button to display in a 3D style with a colored background, use the Picture property to achieve the desired look.
The available settings for value for this control are :
Constant (Macros) |
Constant (Scripts) |
Integer Value |
Example |
Description |
None |
nlNone |
0 |
|
Don’t display a border. BorderWidth and BorderColor properties will be ignored. |
Raised |
nlRaised |
2 |
|
(Default) Display the current default system style for buttons. BorderWidth and BorderColor properties will not be applied. Note that the style may differ from the example on the left depending on the version of Windows you are running. |
Simple |
nlSimple |
3 |
|
Display a simple line border. |
Many of the BorderStyle values have been obsolete in 11.0. Refer to the table below.
The following values for BorderStyle for the command button are now obsolete from version 11 onwards:
Determines whether the control will be rendered with a border. Read-only at run-time.
object.BorderStyle = [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.
Newlook Smartclient
Newlook Server
Not supported if Material skin is enabled.
A menu button's BorderColor, BorderStyle and BorderWidth properties are ignored if the material skin is enabled. Under material design, menu buttons are always rendered without a border.
A frame control's BorderColor and BorderStyle properties are ignored if the material skin is enabled and the frame's Style property is set to FrameGroupBox. In this scenario, frames will render with a simple gray border.
This property is used to determine whether a control will render with a border or no border.
The available settings for value for these controls are :
Constant (Macros) |
Constant (Scripts) |
Integer Value |
Description |
None |
nlNone |
0 |
Don’t display a border. BorderWidth and BorderColor properties will be ignored. |
Simple |
nlSimple |
3 |
Display a simple line border. |
Many of the BorderStyle values have been made obsolete in 11.0. Refer to the table in Settings below.
The following values for BorderStyle for the Frame and menu button control are now obsolete from version 11 onwards:
Determines whether the control will display with a border or no border. Read-only at run-time.
object.BorderStyle = [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.
Newlook Smartclient
Newlook Server
None. Supported in both Material and Classic skin.
This property is used to determine whether a control will render with a border or no border. Note that for controls that have a BorderWidth property, this must be set to a value greater than 0 for a border to display.
The available settings for value for these controls are :
Constant (Macros) |
Constant (Scripts) |
Integer Value |
Description |
None |
nlNone |
0 |
Don’t display a border. BorderWidth and BorderColor properties will be ignored. |
Simple |
nlSimple |
3 |
Display a simple line border. |
Many of the BorderStyle values have been made obsolete in 11.0. Refer to the table in Settings below.
The following values for BorderStyle for these controls are now obsolete from version 11 onwards:
Determines whether the control will display with a border or no border. Read-only at run-time.
object.BorderStyle = [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.
Newlook Smartclient only.
This property is used to determine whether a control will render with a border and, if so, the visual style of that border.
This properties can only be set for the TreeView and ListView controls at Design-time, they cannot be set or returned dynamically at run-time. Any logic returning this property will generate a run-time error.
The available settings for value for this control are :
Constant (Macros) |
Constant (Scripts) |
Description |
None |
nlNone |
Don’t display a border. |
Simple |
nlSimple |
(Default) Display a simple line border. |
Many of the BorderStyle values have been made obsolete in 11.0. Refer to the table in Settings below.
The following values for BorderStyle for the TreeView and ListView controls are now obsolete from version 11 onwards:
BorderColor property | BorderWidth property
© 2004-2021 looksoftware. All rights reserved.