Jump to content


Photo

Indicator pointing at wrong row when FixedRowCount > 0

TNextGrid6 Indicator FixedRowCount

  • Please log in to reply
3 replies to this topic

#1 Chi75

Chi75
  • Members
  • 2 posts

Posted 11 May 2023 - 08:24 PM

Hi Boki,

 

Hope you are well.

 

I'm come across a strange bug with the row Indicator if FixedRowCount is set to anything above 0.

 

The indicator position is offset by the FixedRowCount. 

 

Here's a example:

 

1. Drop a TNextGrid6 component onto a form with 3 text columns. Add a button to populate the grid.

procedure TForm2.Button1Click(Sender: TObject);
var
  count : Integer;
  loop : Integer;
begin
  count := 1;
  for loop := 0 to 100 do
  begin
    NextGrid61.AddCells([ count.ToString, (count+1).ToString, (count+2).ToString ], [0,1,2]);
    count := count + 3;
  end;
  NextGrid61.ActiveView.FixedRowCount := 1;
end;

Click on each row from the top. First row is ok. Second doesn't show an indicator. Third onwards will show the indicator on the previous row. You can even get it to show two indicators! 

 

 

This is seen with the latest version (v6.9.5) but is also there in older versions (e.g. v6.3.7).

 

Is it something I'm doing wrong or is this a bug?

 

Hope you can you help.

 

thanks,

Chi

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 13 May 2023 - 07:58 PM

Hello,

 

Thank you for screenshot, it will help a lot. I will fix it for the upcoming release, it should be simple fix.

 

Thanks again for reporting.


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 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 14 May 2023 - 12:53 PM

Hello,

 

I have fixe it. It will be available in the next update.


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.

#4 Chi75

Chi75
  • Members
  • 2 posts

Posted 15 May 2023 - 01:09 PM

Hi Boki,

 

Thanks for the quick response!

 

Looking forward to the next update.

 

thanks,

Chi






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users