Frequently Asked Component Specific Questions
Options |
Display all FAQ items |
Displaying items 1 to 1 of 1, page 1 of 1
<< previous next >>
TAdvStringGrid
How to customize colors in the dropdown color cube
How to customize colors in the dropdown color cube
You can customize the colors of each cell in the color cube selection of TAdvColorPickerDropDown by implementing the OnDropDown event and in this event handler write the code:
procedure TForm4.AdvColorPickerDropDown1DropDown(Sender: TObject; var acceptdrop: Boolean); begin AdvColorPickerDropDown1.CubePanel.CubeCellColor[0] := clred; AdvColorPickerDropDown1.CubePanel.CubeCellColor[1] := clgreen; AdvColorPickerDropDown1.CubePanel.CubeCellColor[2] := clblue; AdvColorPickerDropDown1.CubePanel.CubeCellColor[3] := clblack; end;