getSystemColor

getSystemColor(displayElement: Integer): Integer;

The getSystemColor method of the Window class returns the system color specified in the displayElement parameter for the window.

In JADE thin client mode, this method always returns the colors defined for the presentation client.

The method in the following example shows the use of the getSystemColor method.

create() updating;
begin
    borderStyle      := BorderStyle_None;
    width            := 30;
    height           := 30;
    backColor        := getSystemColor(Color_3DFace);
    transparent      := true;
    transparentColor := 192 + 192*256 + 192*256*256;
end;

For a list of the system color constants, see "Window Class Constants".