コミュニティ

imageViewer_OnToolChangeBlockRegion 回答済み

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

 

この記事は役に立ちましたか?

0人中0人がこの記事が役に立ったと言っています

コメント

3件のコメント

  • Avatar
    Permanently deleted user

    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.

    0
  • Avatar
    Permanently deleted user

    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.

    0
  • Avatar
    Permanently deleted user

    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.

    0

サインインしてコメントを残してください。