"Ramy" <
XXXX@XXXXX.COM >wrote:
Quote
[...] when i hold the scrolling bar and start dragging [...]
That would be dragging the thumb.
Quote
it doesn't happen to me with a ListBox,
For what ever the reason, the VCL doesn't impliment that
functionality (probably because of all of the repainting)
but you are free to add it yourself.
You'll need to subclass (or override) it's WndProc method
and intercept WM_VSCROLL and WM_HSCROLL. Check the win32 help
file for particulars. If you search the archives, there's most
like sample code ready to cut & paste.
Quote
>If you scroll the rows......... However,
>if you scroll the rows up or down....
What's the different between the first sentence and the second
one?
If you have FixedCols and FixedRows, what ever number you
specify for each, that's how many will always be displayed
on screen. IOW, they will not scroll off screen. However,
they will scroll to keep in sync with the data column and
rows.
If you scroll the rows up or down, the fixed columns will
scroll up or down with the data rows. However, the fixed
rows do not move. In the same fashion, if you scroll the
columns left or right, the fixed rows will also scroll left
or right but the fixed columns do not move.
Try thinking of the fixed cells as headers that stay in sync
with the column or row that they are assigned to. If you take
your test and itterate the cells, assigning the column and row
number to each cell and then play with scrolling the grid, you
should get the idea.
~ JD