I have a TScrollBox with attached control canvas.
I draw graphic controls and when scrolled, their left coordinate shows the amount of movement as negative as expected.
When I draw lines and retain the coordinates of the start position these of course do not update and it requires that I manually update each by subtracting the scroll amount because the canvas moves but the scrollbox window always has the same coordinates (and is stationary) starting at zero. This is tedious and prone to error.
Is there any way that the scrollbox window coordinates can be made to change as scrolled, i.e. move the window instead of the canvas?
Thanks
Enonod
I draw graphic controls and when scrolled, their left coordinate shows the amount of movement as negative as expected.
When I draw lines and retain the coordinates of the start position these of course do not update and it requires that I manually update each by subtracting the scroll amount because the canvas moves but the scrollbox window always has the same coordinates (and is stationary) starting at zero. This is tedious and prone to error.
Is there any way that the scrollbox window coordinates can be made to change as scrolled, i.e. move the window instead of the canvas?
Thanks
Enonod