[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
nClrText Fore RGB Color value to draw text
--------------------------------------------------------------------------------
nClrText is a numeric value ( long format: four bytes ) which represents
the RGB value of the Fore color to use to draw text on the Object.
The oBrush of a Window Object or a descendant class Object, has a
brush Object which is automatically built based on the Back color
of the Object, unless the user specifies a special Brush Object when
calling the constructor:
Example:
DEFINE WINDOW oWnd FROM 1, 1 TO 20, 40 ;
TITLE "Hello World" ;
COLOR "GR+/R"
ACTIVATE WINDOW oWnd
This Window has Yellow color (GR+) as nClrText DATA and Red color (R)
as its nClrPane DATA. It also has an oBrush Object built using the
Red Color.
Example:
DEFINE BRUSH oBrush RESOURCE "FillOne"
DEFINE WINDOW oWnd FROM 1, 1 TO 20, 40 ;
TITLE "Hello World" ;
COLOR "GR+/R" ;
BRUSH oBrush
ACTIVATE WINDOW oWnd
This Window has Yellow color (GR+) as nClrText DATA and Red color (R)
as its nClrPane DATA. It also has an oBrush Object, but the Brush was
already built.
This means the full color of the Window will be done based on the
Brush Object, but if we use the :Say( <nRow>, <nCol>, <cText> ) method
of the Window, the text will appear by default as Yellow on Red.
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson