Jump to content


ObiWan

Member Since 28 Feb 2008
Offline Last Active Mar 06 2024 05:07 PM
-----

Topics I've Started

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 ?


Hide checkbox column in childrow

26 October 2023 - 12:45 PM

Hi Boki,

I have a grid with these columns

- treecolumn
- checkboxcolumn
- textcolumn


I need that checkbox iv visible only on toplevel rows, but if I try to hide the relative cell in child rows the first of these act as a toplevel 

I attach two screenshoots

 

Thanks