Detecting text editing
Detecting text editing
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
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
Re: Detecting text editing
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
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
Re: Detecting text editing
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
That's great - thank you!
The arrow is not a major problem - most people would not use such a low zoom level.
Thanks,
bjcam
Re: Detecting text editing
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
The release is available. You can download it from https://www.gdpicture.com/download/downl ... urenet.php
Hope this helps
Kind regards,
Loïc
Re: Detecting text editing
Hi
Excellent! Thank you very much - just what I needed.
Excellent! Thank you very much - just what I needed.
Who is online
Users browsing this forum: No registered users and 1 guest