Discussion of article "DoEasy. Controls (Part 31): Scrolling the contents of the ScrollBar control"

 

New article DoEasy. Controls (Part 31): Scrolling the contents of the ScrollBar control has been published:

In this article, I will implement the functionality of scrolling the contents of the container using the buttons of the horizontal scrollbar.

Compile the EA and launch it on the chart:


As you can see, the scrolling managed by the arrow buttons works well. When trying to move the slider with the mouse, it "resists", which is natural - we still do not have processing of the slider shift, but we already have a recalculation of its size and coordinates. So, when we try to move the slider with the mouse, the method of setting its coordinates returns it to the position that corresponds to the position of the container content in its visible area. This behavior will be finalized in the subsequent articles.

Author: Artyom Trishkin

Reason: