xavier.batlle
Active member
- Local time
- Tomorrow, 00:30
- 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.
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.
Attachments
Last edited: