Sticky Note functionality
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Sticky Note functionality
Hello,
Here's another one. I want my users to be able to put sticky notes on a document. Since having pre-defined text in the sticky note doesn't really make sense, the way I am currently doing it is setting the "Text" parameter to "String.Empty", so when they draw the sticky note the text is empty. The way it should work is they draw the note and then can type the text they want in the note. Currently though, the user has to draw the note and then double-click in the note area to be able to type the text for the note.
Is there a way to set it up so that as soon as the user finishes drawing the note, the cursor automatically goes into the note area so that they can immediately start typing. Alot of my users would probably not know that they need to double-click in the note area in order to be able to type the text. Do you know of a way to prevent them from having to do that?
Thanks,
Reagan
Here's another one. I want my users to be able to put sticky notes on a document. Since having pre-defined text in the sticky note doesn't really make sense, the way I am currently doing it is setting the "Text" parameter to "String.Empty", so when they draw the sticky note the text is empty. The way it should work is they draw the note and then can type the text they want in the note. Currently though, the user has to draw the note and then double-click in the note area to be able to type the text for the note.
Is there a way to set it up so that as soon as the user finishes drawing the note, the cursor automatically goes into the note area so that they can immediately start typing. Alot of my users would probably not know that they need to double-click in the note area in order to be able to type the text. Do you know of a way to prevent them from having to do that?
Thanks,
Reagan
Re: Sticky Note functionality
Hello Reagan,
This is not yet possible but it will be in the next minor release by using the DisplayTextEditBox() method.
IE:
Kind regards,
Loïc
This is not yet possible but it will be in the next minor release by using the DisplayTextEditBox() method.
IE:
Code: Select all
Private Sub GdViewer1_AnnotationAddedByUser(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationAddedByUser
GdViewer1.DisplayTextEditBox(AnnotationIdx)
End Sub
Loïc
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Re: Sticky Note functionality
Sounds good. Thank you.
By the way, currently when the user draws the note, the default fill color of the note is a bright yellow color. Is it possible for me to change that color? I don't need the user to be able to change it, I just want to change it permanently to a lighter yellow color. Is this possible?
Reagan
By the way, currently when the user draws the note, the default fill color of the note is a bright yellow color. Is it possible for me to change that color? I don't need the user to be able to change it, I just want to change it permanently to a lighter yellow color. Is this possible?
Reagan
Re: Sticky Note functionality
Hello,
Yes is is:
Hope this helps !
Kind regards,
Loïc
Yes is is:
Code: Select all
Private Sub GdViewer1_AnnotationAddedByUser(ByVal AnnotationIdx As Integer) Handles GdViewer1.AnnotationAddedByUser
Dim annot As GdPicture.Annotation = GdViewer1.GetAnnotationFromIdx(AnnotationIdx)
If TypeOf annot Is AnnotationStickyNote Then
DirectCast(annot, AnnotationStickyNote).FillColor = Color.Beige
End If
End Sub
Kind regards,
Loïc
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Re: Sticky Note functionality
Loic,
Thanks for the reply. That does work, however it draws the note in the bright yellow and then changes it to my new color after its drawn. Is there any way that I can change the default note color so that it draws in the new color instead of changing the color after it is drawn?
Thanks,
Reagan
Thanks for the reply. That does work, however it draws the note in the bright yellow and then changes it to my new color after its drawn. Is there any way that I can change the default note color so that it draws in the new color instead of changing the color after it is drawn?
Thanks,
Reagan
Re: Sticky Note functionality
I was expecting this remark
So I've added a new event: BeforeAnnotationAddedByUser()
This will help you to do the trick.
The next release will be published within few hours.
Kind regards,
Loïc
So I've added a new event: BeforeAnnotationAddedByUser()
This will help you to do the trick.
The next release will be published within few hours.
Kind regards,
Loïc
Re: Sticky Note functionality
Hello,
New version available: https://www.gdpicture.com/download/downl ... urenet.php
Kind regards,
Loïc
New version available: https://www.gdpicture.com/download/downl ... urenet.php
Kind regards,
Loïc
-
- Posts: 32
- Joined: Sun Jan 30, 2011 8:40 pm
Re: Sticky Note functionality
Thank you Loic. I'm amazed at how quickly you are able to get a new release out. That solution works great for changing the color of a sticky note before it's drawn and it also included the new method "DisplayTextEditBox" so my user doesn't have to double-click on the sticky note to be able to type in it.
I am very impressed so with this tool and especially your support.
Thanks,
Reagan
I am very impressed so with this tool and especially your support.
Thanks,
Reagan
Re: Sticky Note functionality
You are welcome Reagan, thank you for the return !
Kind regards,
Loïc
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests