Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
jeffp
Posted - Nov 19 2024 : 12:02:47 When using MouseInteractLayers := [mlCreateShapeLayers]; in the TImageEnView, I can select an area for my shape both on and off the image displaying in the TImageEnView.
Selecting an area outside the image is causing problems. I there an easy way to limit the selection area when creating a shape to the coordinates of the displayed image so a shape cannot be create outside the image bounds?
jp
2 L A T E S T R E P L I E S (Newest First)
jeffp
Posted - Nov 19 2024 : 18:44:13 Worked! Thanks
jp
xequte
Posted - Nov 19 2024 : 14:48:44 Hi Jeff
You can use:
// Layers cannot be created or dragged beyond the background layer
ImageEnView1.LayerOptions := ImageEnView1.LayerOptions + [ loPreventOutOfBounds ];