Jump to content


Photo

How to Coloring Font base on value in NextDBGrid 6


  • Please log in to reply
2 replies to this topic

#1 Bagong

Bagong
  • Members
  • 20 posts

Posted 19 May 2019 - 05:12 PM

Hi boki, i am stll waiting the new version.

And now i want to know how to Coloring Font base on value in NextDBGrid 6..

 

in next dbgrid 5, there was OnCellColoring or OnCellFormating.



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,798 posts
  • Gender:Male

Posted 19 May 2019 - 05:20 PM

Hi,

 

You can use next event. This event is located in Column:

 

procedure TForm1.NxTextColumn61StyleText(Sender: TObject; ACol, ARow: Integer;
  var FontColor: TColor; FillColor: TColor; var FontStyle: TFontStyles;
  CellValue: INxBase; CellState: TNxCellPaintingState);
begin
// Set some of var parameters
end;

boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 7,798 posts
  • Gender:Male

Posted 19 May 2019 - 05:21 PM

PS. Also add NxIntf6, NxTypes6 in uses section.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users