How to change the Value Color of FNCSpinEdit to yellow as it always black?
Hi,
Currently this is not possible to do.
Starting form the next update you'll be able to access the Edit
public property of the TTMSFNCSpinEdit
which maps onto the TTMSFNCEdit
that is used by the control. That way, you can set the font color (depending on the framework) programmatically.
//FMX
procedure TForm1.FormCreate(Sender: TObject);
begin
TMSFNCSpinEdit1.Edit.StyledSettings := TMSFNCSpinEdit1.Edit.StyledSettings - [TStyledSetting.FontColor];
TMSFNCSpinEdit1.Edit.FontColor := gcYellow;
end;
//VCL
procedure TForm2.FormCreate(Sender: TObject);
begin
TMSFNCEdit1.Font.Color := gcYellow;
end;
Great. Thanks for the suggestion.
I had another solution. I covered the Value Box with a small rectangle and insert a Tlabed in it. With this I could change the color and the format of the value through a simple function.