Color constants for index colors

<< Click to Display Table of Contents >>

Color constants for index colors

Some of TextMaker's and PlanMaker's properties expect an index color as their argument. You may exclusively use one of the following values:

smoColorIndexAutomatic       = -1 ' Automatic (see below)

smoColorIndexTransparent     = -1 ' Transparent (see below)

smoColorIndexBlack           =  0 ' Black

smoColorIndexBlue            =  1 ' Blue

smoColorIndexCyan            =  2 ' Cyan

smoColorIndexGreen           =  3 ' Green

smoColorIndexMagenta         =  4 ' Magenta

smoColorIndexRed             =  5 ' Red

smoColorIndexYellow          =  6 ' Yellow

smoColorIndexWhite           =  7 ' White

smoColorIndexDarkBlue        =  8 ' Dark blue

smoColorIndexDarkCyan        =  9 ' Dark cyan

smoColorIndexDarkGreen       = 10 ' Dark green

smoColorIndexDarkMagenta     = 11 ' Dark magenta

smoColorIndexDarkRed         = 12 ' Dark red

smoColorIndexBrown           = 13 ' Brown

smoColorIndexDarkGray        = 14 ' Dark gray

smoColorIndexLightGray       = 15 ' Light gray

Tip: Those properties that use BGR colors are more flexible and should be used preferably.

The colors smoColorIndexAutomatic and smoColorIndexTransparent serve specific purposes, as follows:

smoColorIndexAutomatic sets the text color in TextMaker or the color of the sheet grid in PlanMaker to "Automatic".

smoColorIndexTransparent sets the background color of text to "Transparent" in TextMaker or PlanMaker.