Search found 4 matches

by acarlomagno
Mon Mar 05, 2018 4:32 pm
Forum: VCL / FMX
Topic: Cell custom font color
Replies: 7
Views: 23648

Re: Cell custom font color

Hi,
ok with TAlphacolors.yellow .. it correct

mah ... I am going crazy ;-)

thanks for support!

Antonello
by acarlomagno
Wed Feb 28, 2018 2:24 pm
Forum: VCL / FMX
Topic: Cell custom font color
Replies: 7
Views: 23648

Re: Cell custom font color

Hi,
yes now works, but the colors are wrong!

AData.Painter.SetFontColor( TColors.Yellow );

I set Tcolors.yellow ... and I have the color "light blue"

see the attachment

Antonello
by acarlomagno
Tue Feb 27, 2018 12:04 pm
Forum: VCL / FMX
Topic: Cell custom font color
Replies: 7
Views: 23648

Re: Cell custom font color

Hello, Try like this: procedure TStringGridForm.PaintText(const Sender:TColumn; var AData:TRenderData; var DefaultPaint:Boolean); begin DefaultPaint:=True; if AData.Row=4 then begin DefaultPaint:=False; AData.Painter.SetFontColor(clRed); (Sender.Render as TTextRender).Paint(AData); AData.Painter.Se...
by acarlomagno
Wed Feb 21, 2018 2:54 pm
Forum: VCL / FMX
Topic: Cell custom font color
Replies: 7
Views: 23648

Cell custom font color

Hello, I would to change a font color of a cell of TeeGrid on Firemonkey (win32 and OSX) I tried the onPaint event of column with this code but change only background of cell, why? thanks Antonello procedure TFormGridDataSet.GridOnPaintColumn(const Sender: TColumn; var AData: TRenderData; var Defaul...