Jump to content


Photo

Textcolor


  • Please log in to reply
2 replies to this topic

#1 ObiWan

ObiWan
  • Members
  • 45 posts

Posted 16 January 2024 - 01:57 PM

Hi,
I'm converting  old nextsuite5 code to nextrgid6 and I got a problem

 

OLD CODE

 

procedure TForm_storico.NextGrid_storicoolfCellFormating(Sender: TObject; ACol, ARow: Integer; var TextColor: TColor; var FontStyle: TFontStyles; CellState: TCellState);
begin
  if NextGrid_storico.Cell[10,arow].Asfloat=0 then
  begin
    TextColor:= clRed;
    FontStyle:= [fsitalic]
  end;
end;

 

I know that i must use 

 

procedure TForm_storico.NxCheckBoxColumn61StyleText(Sender: TObject; ACol, ARow: Integer; var FontColor: TColor; FillColor: TColor;
  var FontStyle: TFontStyles; CellValue: INxBase; CellState: TNxCellPaintingState);
 
 

for each column , but I got this error

 

[dcc32 Error] u_storico.pas(61): E2003 Undeclared identifier: 'INxBase'
[dcc32 Error] u_storico.pas(61): E2003 Undeclared identifier: 'TNxCellPaintingState'
[dcc32 Error] u_storico.pas(353): E2005 'INxBase' is not a type identifier
[dcc32 Error] u_storico.pas(353): E2005 'TNxCellPaintingState' is not a type identifier
[dcc32 Fatal Error] F2063 Could not compile used unit 'u_storico.pas'

 

 

 

Can you Please hep me ?



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,184 posts
  • Gender:Male

Posted 17 January 2024 - 02:48 PM

Hello,

 

Try adding NxTypes6 and NxIntf6 in the uses section of your unit.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.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 ObiWan

ObiWan
  • Members
  • 45 posts

Posted 19 January 2024 - 09:16 PM

of course :)
Thanks for your help






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users