I’m making an application that holds orders and prints invoices. I have some labels, tedits, tmemos, buttons, a datasource, an adotable, a popupmenu, and a dbgrid on my form.
When I build the program and scroll down the dbgrid scrollbar, it scrolls after I release mouse button. But i want continuous scrolling.
Greetings
That’s called thumb tracking. Derive a new class to override scrolling behavior. Example of using an interposer class:
You can also replace the
WindowProcof the control if you don’t want to derive a new class. All you need to do is to handleWM_VSCROLLmessage. Here is an example how to do that.