Topic: Currency editbox text color

Hi All,


I'm trying to get currency editbox text displayed in a specific color when contains minus and plus values
i.e if minus textbox would display the value within as color red, if plus value as color blue.
I couldn't make the following work. Any help please?

procedure Form1_edRunTotalStg1_OnChange (Sender: TObject);
begin
if Form1.edRunTotalStg1.Value < 0 then Form1.edRunTotalStg1.textcolor := clred else Form1.edRunTotalStg1.textcolor := clblue;
end;
Adam
God... please help me become the person my dog thinks I am.

Re: Currency editbox text color

Hi Adam,
If you want the font to change, it should be 'form1.edit1.font.color := 'clxxxxx'
If you want the background to change, it should be 'form1.edit1.color := 'clxxxxx'
Derek.

Re: Currency editbox text color

Hi Derek,
Thank you very much.....
truly appreciated..........

Adam
God... please help me become the person my dog thinks I am.