Hello. I draw a certain shape on the Image component, it is necessary to add the possibility of skolling the drawn shape. I added a ScrollBox to the form, I shoved an Image into it ( like this ), but the image never scrolled, it was a bit different, but it didn’t work. How can I add scoll?
First you need to make the size of the TImage as your picture. And then, if TImage goes beyond the TScrollBox's boundaries, sliders will appear in the TScrollBox, and you can normally scroll the image.
Apparently, the size of the Image component itself does not exceed the size of the ScrollBox ... try to programmatically increase the size of the Image.
Image1.width: = ...; Image1.height: = ...
Image1.align -> alnone and scrolls appeared