[WD20] Automatic Scrolling with Smooth Animation

Startbeitrag von Curtis am 02.08.2016 19:42

I want to have a table that has more records than can fit on the screen. I want the table to smoothly scroll to the bottom and then smoothly scroll back to the top automatically. Is this possible?

I haven't had any luck yet with programming animation of controls. I also haven't had any luck with the animation defined in the control style. I'm about to give this a try.


Hi Curtis,

it depends what you call smoothly...

You can : do a loop from 1 to tablecount of your table, and do a tableselectplus of each line, then a second loop from tablecount to 1 and do a tableselectplus of the line

-OR-, you can work with apis on the scrollbars of your table to have a smoother scrolling

Best regards

von Fabrice Harari - am 02.08.2016 19:58
I'm going to need it to be quite smooth, as professionally smooth as possible. I tried the TableSelectPlus() route, but I could not get it smooth enough. Which apis? Do you mean emulating the mouse?

von Curtis - am 02.08.2016 20:01
Hi Curtis,

I mean sending messages directly to the scrollbar to control it... From the top of my head, you can do it with SendMessage, with a WM_VSCROLL message...

EDIT: actually, while the above is still true, there is now a function for that: ScrollbarPosition

Best regards

von Fabrice Harari - am 02.08.2016 20:35
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.