SelectedItemForeColor Property
Specifies the foreground color of the text of a selected item in a ComboBox or ListBox or cell (TextBox only) in a Grid control. SelectedItemForeColor is related to the HighlightForeColor and HighlightBackColor properties in that you need to control the color of the selected cell in a grid row. Read/write at design and run time.
Control.SelectedItemForeColor [= nColor ]
-or-
Control.SelectedItemForeColor = RGB( nRedValue, nGreenValue, nBlueValue )
Parameters
- nColor
Numeric data type. SelectedItemForeColor specifies an integer representing a color value. Visual FoxPro derives the default color setting from the Windows operating system font color setting for Selected Items. For information about valid color values, see BackColor, ForeColor Properties.
Remarks
For more information about the GridSelectedItemForeColor and GridSelectedItemBackColor properties, see SelectedItemBackColor Property.
See Also
Properties | HighlightStyle Property | TextBox Control | ResetToDefault Method | Selected Property | ItemBackColor, ItemForeColor Properties | RGB( ) Function
Applies To: ComboBox Control | ListBox Control | Grid Control