TMSFMXRating colors

Hi,

is there a way to change the color of the stars of TMSFMXRating component?

thanks
Antonello
You can use the following code in the OnActiveCustomize event to customize the fill color

procedure TForm1.TMSFMXRating1ActiveCustomize(Sender: TObject;
  AShape: TControl; AShapeIndex: Integer);
begin
  (AShape as TTMSFMXRatingShape).Fill.Color := claBlue;
end;

thanks works! ... 

I tried also (AShape as TTMSFMXRatingShape).Stroke.Kind := TBrushKind.None;

but not change!

Antonello

This works as expected here. Please note that there are 2 events, one for the customization of the active stars and inactive stars appearance.

wow thanks!, I did not see the second event for inactive!


Antonello