Consider the following case: A Stringgrid with different row
heights. The height of each row is determined dynamically at run-time
and depends on the amount of data to be shown. The height of each row is
adjusted so that all lines of text inside this row are visible. This is
a must.
So the grid may have a few rows which contain
only a few lines of text, followed by a row which contains 50 lines of
text, followed by rows that again only contain a few lines of text.
When
this grid is scrolled vertically it always jumps to the top of each
grid row. Scrolling doesn't take the row height into account. For the
row with 50 lines of text this may mean that the bottom lines of text
may never be visible if they don't fit into the total height of the
grid. Adding a vertical scrollbar to this specific row is not an option.
How
can I achieve it that each "tick" of the scroll wheel, Arrowkey Up/Down
or drag with the drag handle scrolls by the same physical distance and
not by a full row?