Hallo Frank
FM> The vertical scroll bar in a RID only seems to know 3 positions -
FM> top, middle and bottom. It would be nice if properly indicated how
FM> far into the data set you were (and even nicer if by its size it
FM> showed the proportion of records currently visible, as some
FM> applications do).
FM> Anybody got any clues?
I made a component that does just that and a lot more. The inevitable
downside however is that you need to do your browsing using TTable.MoveBy
excusively. You cannot ever do a Seek or FindKey for there's no way telling
where you end up. You need to keep track of a virtual record number. Good
thing MoveBy is extremely fast, a table with 10000 records, each containing 4
memo's, is still handled with acceptable performance on a common machine.
I dropped the dynamic scroll thumb, after messing about with it for a couple
of days. It appeared to be impossible 'to make ends meet', dragging the thumb
all the way down would not bring up the last record or the last record showed
before the thumb was all the way down. So I used a conventional thumb for the
vertical bar. Works rather nicely.
Before I made my component (which currently is restricted to viewing
capability) I thought those guys at Borland had taken the easy way out making
TDBGrid. Now I understand why the scrollbar works the way it does. They are
not stupid after all.
Groeten, Martin.
--- FMail/386 1.02
---------------
* Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1)
|