Jump to content


ObiWan

Member Since 28 Feb 2008
Offline Last Active Dec 02 2024 07:53 PM
-----

Topics I've Started

Treecolumn

29 October 2024 - 12:20 PM

Hi,

I'm sure this will be a silly question but I cannot find how to get the index of parent row relative to his child rows.

 

Thanks
 


ShowCellTextFitHint strange behavior

20 February 2024 - 05:40 PM

Hi ,

i Have a grid and one of the column has ShowCellTextFitHint enabled: even if all contents are longer than the width of the column only some row show hint.
Only if I set the column as resizable all works, but I do not want the column is resizable.

 

Can you help me ?

 

Thanks 

 

 


Textcolor

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 ?