Annotation's bounding box event

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
Junhui
Posts: 8
Joined: Wed Jan 18, 2012 10:22 am

Annotation's bounding box event

Post by Junhui » Tue Feb 14, 2012 4:22 pm

Hello, Alex.
At First, thank you for your supporting about image collection's index.
I downloaded (registered version) new release, and I solved that issue.
I have a problem with Annotation's event, so I need your advices.
When I move mouse cursor into Annotation's bounding box, the cursor changed to "Cross" automatically .
(I just want to keep mouse cursor "Default" at anytime.)
I have overridden that annotation, and I want to catch that entering Annotation's bounding box event.
Any Ideas or advice would be appreciated.

Best regards,
Jun-hee.

Alex
Site Admin
Posts: 1443
Joined: Thu Jul 10, 2008 2:21 pm

Re: Annotation's bounding box event

Post by Alex » Wed Feb 15, 2012 10:40 am

Hello Jun-hee,

Do you want always show Default cursor when you work with annotations?

If yes, you should create custom annotations and override the SelectTransformation method:

Code: Select all

public class MyRectangleAnnotation : RectangleAnnotation
{
    ...

    protected override TransformationInfo SelectTransformation(PointF mousePosition, RotationAssistant rotationAssistant, bool fillParams)
    {
        TransformationInfo transformationInfo = base.SelectTransformation(mousePosition, rotationAssistant, fillParams);
        transformationInfo.Cursor = Cursors.Default;
        return transformationInfo;
    }

    ...
}
Best regards, Alexander

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest