FarListColors
The FarListColors structure describes the color scheme for
DI_LISTBOX and
DI_COMBOBOX controls.
struct FarListColors { DWORD Flags; DWORD Reserved; int ColorCount; LPBYTE Colors; };
Members
Flags
Falgs. Must be 0.
Reserved
Reserved for future use. Must be 0.
ColorCount
Amount of items in the Colors array.
Colors
Byte array of the color attributes
(background_color+text_color). By default the folowing attributes are set:
for DI_LISTBOX
Index | Constant | Description |
---|---|---|
0 | COL_DIALOGLISTBOX | background |
1 | COL_DIALOGLISTBOX | border |
2 | COL_DIALOGLISTTITLE | titles - top and bottom |
3 | COL_DIALOGLISTTEXT | normal item |
4 | COL_DIALOGLISTHIGHLIGHT | hotkey |
5 | COL_DIALOGLISTBOX | separator |
6 | COL_DIALOGLISTSELECTEDTEXT | selected item |
7 | COL_DIALOGLISTSELECTEDHIGHLIGHT | selected hotkey |
8 | COL_DIALOGLISTSCROLLBAR | scrollbar |
9 | COL_DIALOGLISTDISABLED | disabled item |
10 | COL_DIALOGLISTARROWS | long string indicators |
11 | COL_DIALOGLISTARROWSSELECTED | selected long string indicators |
12 | COL_DIALOGLISTARROWSDISABLED | disabled long string indicators |
13 | COL_DIALOGLISTGRAY | grayed out item |
14 | COL_DIALOGLISTSELECTEDGRAYTEXT | selected grayed out item |
for DI_COMBOBOX
Index | Constant | Description |
---|---|---|
0 | COL_DIALOGCOMBOBOX | background |
1 | COL_DIALOGCOMBOBOX | border |
2 | COL_DIALOGCOMBOTITLE | titles - top and bottom |
3 | COL_DIALOGCOMBOTEXT | normal item |
4 | COL_DIALOGCOMBOHIGHLIGHT | hotkey |
5 | COL_DIALOGCOMBOBOX | separator |
6 | COL_DIALOGCOMBOSELECTEDTEXT | selected item |
7 | COL_DIALOGCOMBOSELECTEDHIGHLIGHT | selected hotkey |
8 | COL_DIALOGCOMBOSCROLLBAR | scrollbar |
9 | COL_DIALOGCOMBODISABLEDTEXT | disabled item |
10 | COL_DIALOGCOMBOARROWS | long string indicators |
11 | COL_DIALOGCOMBOARROWSSELECTED | selected long string indicators |
12 | COL_DIALOGCOMBOARROWSDISABLED | disabled long string indicators |
13 | COL_DIALOGCOMBOGRAY | grayed out item |
14 | COL_DIALOGCOMBOSELECTEDGRAYTEXT | selected grayed out item |
Remarks
See also: