"borderStyle"

Defines the used border style (normal, 3D, raised, sunken).

Synopsis

setValue(string shape, "borderStyle", int style);

getValue(string shape, "borderStyle", int style);

shape.borderStyle(int style);

Parameter

Parameter Description
shape Name of the object
style

Used style of the border. For frames, the following styles are available:

BS_NONE(0): Normal border

BS_3D(1): 3D display

BS_SUNKEN(2): Sunken

BS_RAISED(4): Raised

BS_STYLED(8): Styled using CSS

Description

By defining a border style (also existing as property), frames can be assigned different borders. This results in several possible 3D displays.

The properties "sunken" and "raised" cause an impression with shadows, that the object seems sunken or raised in the layer.

The property "styled" allows to style the frame using CSS. The classe QGroupProperty must be used to address the frame object.

Example

The following example sets the border to "raised".

main()
{
  this.borderStyle(BS_RAISED)
}
main()
{
  setValue("", "borderStyle", 4);
}
Figure 1. Frame and Border Type "Raised"

Assignment

Frame