Hello,
I need to get the rectangle coordinates from the created blocks or size changed blocks in ImageViewer.
When adding new blocks i achieve this by calling "imageViewer_OnToolAddBlock" event and get the rectangle coordinates (left, top, height, width).
When changing the size of the block I try to get the new coordinates by calling "imageViewer_OnToolChangeBlockRegion", but this event won't be firered.
What is this event, when does it get triggered and what is the right event/approach to achieve my goal?
Thank you in advance
Comments
3 comments
Hi!
This event fires when you are adding or cutting a part from block in ImageViewer. Please check [Help → Visual Components Reference → ImageViewerEvents].
I guess the best choice in your case is to use a OnMouseButtonUp event and then check blocks for changes.
I tried using the OnMouseButtonUp event after changing the rectangle size in ImageViewer.
But when setting a break point in the event handler the rectangle coordinates didn't change.
edit: I figured out that this event is too early stage and the coordinates havent' changed here yet.
It seems that there is no event that fits for that case. The coordinates of VisualBlock haven't changed there yet.
So there it seems that there is no solution.
Please sign in to leave a comment.