Defining Colors
The dbpSetGridProperties Action allows you to specify colors to customize the appearance of a table grid. NeoBook's interface provides a simple color selector that makes this process easy, but you can also define colors manually if you prefer to type actions into the Action Editor. There are two methods you can use to specify colors in the parameters that require them. These methods are defined below:
Method 1:
Simply enter one of the standard Windows color codes from the list below:
|
Black |
Maroon |
Green |
Olive |
|
Navy |
Purple |
Teal |
Gray |
|
Silver |
Red |
Lime |
Blue |
|
Fuchsia |
Aqua |
Yellow |
White |
|
Background |
ActiveCaption |
InactiveCaption |
Menu |
|
Window |
WindowFrame |
MenuText |
WindowText |
|
CaptionText |
ActiveBorder |
InactiveBorder |
AppWorkSpace |
|
Highlight |
HightlightText |
BtnFace |
BtnShadow |
|
GrayText |
BtnText |
InactiveCaptionText |
BtnHighlight |
|
3DDkShadow |
3DLight |
InfoText |
InfoBk |
The first 16 color codes (Black-White) are generic colors that will appear the same on all computer systems. The other colors are user customizable and can be changed using the Windows Control Panel, so other computers will likely display these colors differently that they appear on your PC. For example:
"FontColor=Purple"
Method 2:
Alternatively, you can specify a custom color using its Red, Green and Blue (RGB) components. Every color that can be displayed on a computer screen is composed of specific quantities of red, green and blue light. By specifying levels (from 0 to 255) of these three colors, you can create any one of the 16 million colors in the computer's palette. In NeoBook, you can specify custom colors using this format:
"FontColor=Red,Green,Blue"
For example, to create pure blue you would specify 0 for red, 0 for blue and 255 for blue:
"FontColor=0,0,255"
For pure green, you would specify 0 for red, 255 for green and 0 for blue:
"FontColor=0,255,0"
You can get really fancy by specifying varying amounts of each of the three values. For example, the following will create a pale shade of blue:
"FontColor=176,232,248"