01-28-2016 02:48 PM
thank you for last point and I accept that we should regard it in our programing but I think here it is not the issue
01-28-2016 02:59 PM
@Hatef wrote:thank you for last point and I accept that we should regard it in our programing but I think here it is not the issue
Examples posted for others should follow good coding guidelines, else new users will copy the bad coding habits and perpetuate the problem.
12-03-2023 10:23 AM
Use the mouse down? event and map the croods of your scrollbar, you can even map it relative to the control itself, so using the positions of each string control and relative position of the scrollbar you can know when the user clicks it. Discard the mouse down event if cliked out of the scrollbar.
You can get the mapping by trial/error by clicking and using probes on the mouse down event coords to see when the scrollbar is selected, just determine correctly the top-bottom, left-right pixels.