Cicode Programming Reference > Cicode Function Categories > Display Functions > DspSetCurColor

DspSetCurColor

Sets the color of the focus rectangle. The focus rectangle is used to highlight a selectable object, tab or list item as the mouse moves over it.

Syntax

DspSetCurColor(INT CitectColor)

CitectColor:

An integer representing the color to use for the focus rectangle. The default value is white (0x00FFFFFF).

There are a set of labels available in the Include project that you can use:

Note: If your project is based on the Situational Awareness Starter Project, this value will be overwritten by the color theme setting specified for the project.

Return Value

The previous focus rectangle color as an integer.

Example

DspSetCurColor(WHITE);          // The focus rectangle will be white (the default)
DspSetCurColor(TRANSPARENT);    // The focus rectangle will be not be visible
DspSetCurColor(MakeCitectColour(221, 221, 221));   // The focus rectangle will be grey
DspSetCurColor(MakeCitectColour(255, 0, 0);        // The focus rectangle will be red
DspSetCurColor(MakeCitectColour(0, 255, 0);        // The focus rectangle will be green
DspSetCurColor(MakeCitectColour(0, 0, 255);        // The focus rectangle will be blue

See Also

Display Functions

Published June 2018