I have a ColorPalette with 500 assigned colors.
I want to iterate the colors and test for a match, if found I want to set SelectedIndex accordingly.
I tried rows and cols but same problem.
for i:= 0 to ColorPalette1.ColorCount-1 do begin
if ColorPalette1.Color[i] = MyColor then begin
ColorPalette1.SelectedIndex:= i;
Break;
end;
end;
Andy