Adding the on scroll event and detecting the first visible Id on continuous forms.

xavier.batlle

Active member
Local time
Today, 23:07
Joined
Sep 1, 2023
Messages
235
As far as I know, there is no easy way to detect when records are scrolled in a continuous form using the vertical bar for example.
This example attempts to fill this gap by using a class that detects when records are scrolled using a tricky method:

- In the details section, there is a dummy text box control bounded to the primary key of the table.

- The background and text of the control, both are painted using its ID value as color number.

- The class detects where the first dummy control is and checks its color; if the color of the dummy control changes, it means that the records are scrolling and an event is raised that can be handled by the form.

** Edited **
I've uploaded the version 12 because the previous version uploaded didn't work properly.
1771015255226.png
 

Attachments

Last edited:
sorry but your db crashes immediately upon opening the form frmTest on my winows 11, office 2024 x64.
 
Last edited:
sorry but your db crashes immediately upon opening in my winows 11, office 2024 x64.
Yes, you are absolutely right. Now fixed in version 12.
Thanks for let me know.
I apologize for the inconvenience.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom