Turn annotations on and off
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Turn annotations on and off
Hello,
Once you have called the method "AddRectangleHighlighterAnnotInteractive", is it possible to turn this off in code? I want to have a toggle highlight button so if the user turns it off, the highlight functionality will not be active. Currently it only turns off after a highlight has been drawn.
Also, after the highlight has been drawn, the highlight turns off. Is it possible to make this persistent, so that the user can continue to draw highlights on the page without having to go back and click the highlight button again after each time they highlight an area?
Thank you,
Reagan
Once you have called the method "AddRectangleHighlighterAnnotInteractive", is it possible to turn this off in code? I want to have a toggle highlight button so if the user turns it off, the highlight functionality will not be active. Currently it only turns off after a highlight has been drawn.
Also, after the highlight has been drawn, the highlight turns off. Is it possible to make this persistent, so that the user can continue to draw highlights on the page without having to go back and click the highlight button again after each time they highlight an area?
Thank you,
Reagan
Re: Turn annotations on and off
Hello,
Let me know if I am not clear enough.
Kind regards,
Loïc
Yes it is. See: CancelLastAnnotInteractiveAdd() method.Once you have called the method "AddRectangleHighlighterAnnotInteractive", is it possible to turn this off in code?
Yes, just catch the mouseUp event, and then start a new annotation in it.Also, after the highlight has been drawn, the highlight turns off. Is it possible to make this persistent, so that the user can continue to draw highlights on the page without having to go back and click the highlight button again after each time they highlight an area?
Let me know if I am not clear enough.
Kind regards,
Loïc
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Re: Turn annotations on and off
Thanks Loic. The first answer works great. The second is not working.
If I call GdViewer1.AddRectangleHighlighterAnnotInteractive(Color.Red) in the mouse up event after a highlight has been drawn, the highlight disappears and it still doesn't give me the ability to draw another highlight. I also tried capturing the AnnotationAddedByUser event.
Any ideas as to why this isn't working?
If I call GdViewer1.AddRectangleHighlighterAnnotInteractive(Color.Red) in the mouse up event after a highlight has been drawn, the highlight disappears and it still doesn't give me the ability to draw another highlight. I also tried capturing the AnnotationAddedByUser event.
Any ideas as to why this isn't working?
Re: Turn annotations on and off
Hello again,
Are you using latest version ? / https://www.gdpicture.com/download/downl ... urenet.php
This code works like a charm for me:
Kind regards,
Loïc
Are you using latest version ? / https://www.gdpicture.com/download/downl ... urenet.php
This code works like a charm for me:
Code: Select all
Private Sub GdViewer1_AnnotationAddedByUser(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationAddedByUser
GdViewer1.AddRectangleHighlighterAnnotInteractive(Color.Red)
End Sub
Loïc
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Re: Turn annotations on and off
works great now. not sure what was different, but its working now.
Thanks.
Thanks.
Re: Turn annotations on and off
OK perfect! Thank you for the return.
Cheers,
Loïc
Cheers,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests