TMSFMXColorPicker Restrict Colors

Hi,

I would like to only allow a specific list of colors. If I modify the items this has no effect at run time. Could you please tell me how to achieve this and also to hide/disable the More Color's button.

Thanks,

Ken

The colors are initialized at runtime as well, so to change the default set of colors you need to write your own code. To hide the more button you additionally need to set Mode to csmExtended.


  TMSFMXColorPicker1.Mode := csmExtended;
  TMSFMXColorPicker1.Items.Delete(TMSFMXColorPicker1.Items.Count - 1); //remove last color

Thanks Pieter.