Jump to content


Alex

Member Since 08 Dec 2007
Offline Last Active May 18 2017 03:30 AM
-----

Posts I've Made

In Topic: ListColumn change value event

18 May 2017 - 02:11 AM

Thank you. 


In Topic: OnCellFormating issue

07 May 2017 - 01:58 PM

This is it. In my previous code I set color for 2 columns:

    TextColor := tmpColor;
    NextGrid1.Cell[ACol-2, ARow].TextColor:=tmpColor;

In my current project I paint only 1 column, so I deleted the first line and edited second... Thank you. :)


In Topic: LastRowInView

18 November 2016 - 04:36 PM

Looks good, thank you!


In Topic: LastRowInView

17 November 2016 - 03:39 PM

Sorry to bother you with this very minor issue, but I don't understand how VertScrollBar.PageSize can help.

 

You can reproduce this behavior by doing the following:

- Add grid, button, then add let's say 20 rows

- Try to scroll like this:

 
global variable:
 
var
  ccc: integer=0;

 

button:

 
inc(ccc);
nextgrid1.VertScrollBar.Position:=ccc;
 
 
Click button several times and you will see that scrolling doesn't stop when last row is shown...

In Topic: LastRowInView

16 November 2016 - 03:48 PM

How can I avoid this infinite scroll when using VertScrollBar.Position ? I mean, when last row shown in bottom, I would like VertScrollBar.Position not to scroll more.

QF24hHY.png

 

Temporarily using after scroll pos change
nextgrid1.Height:=nextgrid1.Height+1;
nextgrid1.Height:=nextgrid1.Height-1;
but this is not good.