Hello folks,
i have a tiny problem. In our software we have a list of documents and on the left side a control with the pdfx editor, that shows the selected item in the list. I've written a class that manages the control and checks if there is changes (for now only sticky notes are really relevant). So far so good. When i change the item in the list and there is change, i ask the user if he wants to save. Everything works as expected but one thing:
When i add a sticky note and write something in, and just right after finishing the text (clicking nowhere in the editor) i click on antoher item (thats in a grid in the same window) and click on Save, only a empty sticky note is saved. If i click somewhere in the editor before changing the item, the text is saved as expected.
What i want to know is: Is that intended? Do i miss something? Thanks in advance!
If anything is unclear, feel free to ask for more information.
Greetings,
Dennis
Annotation text input isn't recognized SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Annotation text input isn't recognized
Hello Dennis,
Please check this post and link in it:
https://www.pdf-xchange.com/forum3 ... xt#p114022
Cheers,
Alex
Please check this post and link in it:
https://www.pdf-xchange.com/forum3 ... xt#p114022
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Annotation text input isn't recognized
Hello Alex,
thanks for the quick reply! Unfortunatly none of the solutions seem to work for me.
EDIT (1h after initial answer):
This is how i save the document:
I tried with everything related to the event commented out and like this (withSetInputFocus() commented out). Both doesn't recognize that something was typed into the input field of the sticky note.
Greetings,
Dennis
thanks for the quick reply! Unfortunatly none of the solutions seem to work for me.
EDIT (1h after initial answer):
This is how i save the document:
Code: Select all
if(HasChanges)
{
//pdfCtl.Doc.ActiveView.PagesView.Obj.SetInputFocus();
int eventID = pdfCtl.Inst.Str2ID("e.document.applyCachedChanges");
IPXC_Document doc = pdfCtl.Doc.CoreDoc;
IEvent evt = pdfCtl.Doc.EventServer.CreateNewEvent(eventID, 0, 0);
pdfCtl.Doc.EventServer.FireEvent(evt, pdfCtl.Doc);
IString isDest = pdfCtl.Inst.CreateString(dest);
doc.WriteTo(isDest);
doc.Close();
}
Greetings,
Dennis
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Annotation text input isn't recognized SOLVED
Hello Dennis,
Well that could be because you are saving the IPXC_Document, not the IPXV_Document that you have. Try using this:
https://sdkhelp.pdf-xchange.com/vi ... ument_Save
Cheers,
Alex
Well that could be because you are saving the IPXC_Document, not the IPXV_Document that you have. Try using this:
https://sdkhelp.pdf-xchange.com/vi ... ument_Save
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Annotation text input isn't recognized
Hello Alex,
thanks for the help! I'm still struggling with all the different types of documents etc... Its working now (even without the solutions from the link you sent)
Greetings,
Dennis
thanks for the help! I'm still struggling with all the different types of documents etc... Its working now (even without the solutions from the link you sent)
Greetings,
Dennis
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Annotation text input isn't recognized
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ