Returns or sets the color used to display text in a Text Control. Text Control uses the Microsoft Windows operating enviroment red-green-blue (RGB) color scheme. At design time this property changes or gets the text color of the complete text. At runtime this property determines the color of the selected text when the FormatSelection property has been set to True. When the FormatSelection property has been set to False the text color of the complete text is set or returned.
TXTextControl.ForeColor [= value]
|RGB colors||The valid range for a RGB color is 0 to &HFFFFFF. The high byte of a number in this range equals 0; the lower 3 bytes, from least to most significant byte, determine the amount of red, green, and blue, respectively. The red, green, and blue components are each represented by a number between 0 and 255 (&HFF).|
|System colors||Colors specified by the system color constants. If the high byte isn't 0, Text Control uses the system colors, as defined in the user's Control Panel settings.|