Change DBGrid Colors/FontStyle on Delphi XE2+ Application
$10-30 USD
En curso
Publicado hace alrededor de 10 años
$10-30 USD
Pagado a la entrega
I need Change DBGrid Colors/FontStyle on Delphi XE2+ application, so i need a code to do this, see my example code.
Req: Application must be Style Enabled
Req: DBGrid DrawingStyle must be gdsThemed
Req: Must works on XE2+ version ( My example works only on old delphi, not on XE+ )
Req: Need change row color on gdSelected, gdRowSelected, gdFocused
Req: Full and working project code must be sent.
Proc... DrawColumnCell();
if [gdselected, gdRowSelected] in state then
[login to view URL] := somecolor;
case [login to view URL]('somefeld').asInteger off
1: begin
[login to view URL] := [fsbold];
[login to view URL] := clRed;
end;
2: begin
[login to view URL] := [];
[login to view URL] := clBlue;
end;
end;
end;
I like to work with canvas. I created one testing sample which fulfill follow requirements :
- Style Enabled Application
- DBGrid satisfy Drawing Style property with "gdsThemed".
- It works on XE2+ version [sample created with XE2].
- Change row color with desired grid draw state.
- I will send full and working project code.
Thanks.