FNCDatePicker control color

Good morning to all,
this is an old question .... about FNCDatePicker control color.

in order to change the control color from default one (see image)
image
to yellow .... which property in DateApparence (i think) i have to change with my color?

Thank you

Best regard

Daniele

Hi, you can use this code:

  TMSFNCDatePicker1.DefaultStyle := False;
  TMSFNCDatePicker1.Fill.Color := gcYellow;

Thank you Pieter, i test it now ....
Daniele

PS: There is a way to change inside button glip color ?
Last one ....
There's a way to "center" the date (string) in order to be in the centre of left edge and left button edge?

Hi,

Regarding to the alignment of the text, that is currently not possible. However, we can add an OnBeforeDrawContentText event where would be able to modify it, similar to this:

procedure TForm2.TMSFNCChat1BeforeDrawContentText(Sender: TObject;
  AGraphics: TTMSFNCGraphics; ARect: TRectF; AText: string;
  var ADefaultDraw: Boolean);
begin
  ADefaultDraw := False;
  AGraphics.DrawText(ARect, AText, False, gtaCenter);
end;