Detecting text editing

Discussions about annotation support.
Post Reply
bjcam
Posts: 41
Joined: Tue Jul 12, 2011 10:58 am

Detecting text editing

Post by bjcam » Fri Oct 28, 2011 4:22 pm

Hi
Is there a way to detect if the user is editing text in an annotation (text, sticky or link)? The reason I ask is that I want the delete key to delete an annotation like your sample code, but that means they can't use the delete button while typing in the annotation or it disappears as soon as it loses focus!
If there is no way I will have to use CTRL + Del instead.
Also - if you zoom in or out everything resizes except the arrow head. Probably not a major issue but it looks strange when everything is zoomed out and a large arrow head remains.
Thanks

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Detecting text editing

Post by Loïc » Mon Oct 31, 2011 2:42 pm

Hi,

For the next 8.4 release you will find 2 new events:
AnnotationStartEditingText
AnnotationEndEditingText

For the line arrow rendering issue, the behavior occurs only when the zoom level is low.
We will fix this problem later by rewriting the API which draw the end line.

Kind regards,

Loïc

bjcam
Posts: 41
Joined: Tue Jul 12, 2011 10:58 am

Re: Detecting text editing

Post by bjcam » Mon Oct 31, 2011 3:21 pm

Hi Loic
That's great - thank you!
The arrow is not a major problem - most people would not use such a low zoom level.
Thanks,
bjcam

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Detecting text editing

Post by Loïc » Tue Nov 01, 2011 4:27 pm

Hi,

The release is available. You can download it from https://www.gdpicture.com/download/downl ... urenet.php

Hope this helps :)

Kind regards,

Loïc

bjcam
Posts: 41
Joined: Tue Jul 12, 2011 10:58 am

Re: Detecting text editing

Post by bjcam » Thu Nov 03, 2011 2:17 pm

Hi
Excellent! Thank you very much - just what I needed.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests