Jump to content


bertrod

Member Since 05 Jun 2006
Offline Last Active Oct 13 2022 05:03 PM
-----

Posts I've Made

In Topic: [NxGrid6] OnCellClick not called if row is not fully visible

19 October 2021 - 08:43 AM

Hi,

 

This seems like trickier than I thought. I'm not sure actually what is right way to do it, as cell is simply not anymore at same place after scroll and it will be maybe wrong to call it click.

 

I'm wondering if maybe new event OnCellMouseDown can work better for you?

 

 

Hi,

 

The row is selected after the click and I think if a user is clicking on a row which is partially hidden, his goal is to select the row. So the OnClick should be called, but I understand it is not easy to solve. 

 

On my side it is OK because I have added the 'UpCell := FPressedCell' and it is working well for me, so you can take the time to think how you want to solve it.


In Topic: [NxGrid6] OnCellClick not called if row is not fully visible

10 October 2021 - 08:38 AM

Hi,

 

It seems that screenshots are missing.

 

I can see them at the bottom of my message, there is a part "Attached Thumbnails" with 2 images. You do not see them?


In Topic: Sorting: Cell1.ColIndex not correct

25 November 2020 - 04:08 PM

I was a bit struggling with this one, but I found a solution by using the Cell1.ComputedLocation:

 

procedure TfrmMain.NxGrid6CellCompare(Sender: TObject; Cell1,
  Cell2: INxCell; var Compare: Integer);
begin
  if Cell1.ComputedLocation.X = NxTextColumn.Position then begin
    ...

In Topic: NxButton6 disabled look

17 November 2020 - 03:12 PM

Hi PhilW2,

 

For your info I'm now also using v6.6.0 with Delphi 10.4.1 and I had to add a line in TNxButton6.Paint :

    if Focused then Include(FState, bsSelected);
    if not Enabled then Include(FState, bsDisabled) else Exclude(FState, bsDisabled); //<-- This is the new line which I added

Hope it helps