PDF-XChange Editor SDK for Developers
Moderators: Daniel - PDF-XChange , PDF-XChange Support , Vasyl - PDF-XChange , Chris - PDF-XChange , Sean - PDF-XChange , Paul - PDF-XChange , Ivan - Tracker Software , Stefan - PDF-XChange
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.
zarkogajic
User
Posts: 1467 Joined: Thu Sep 05, 2019 12:35 pm
Post
by zarkogajic » Thu Nov 21, 2019 9:56 am
Hi support,
I'm trying to "disable" history by using "Docs.Recents.MaxItemsCount" and setting it to 0.
Code (one line important below, but just in case):
Code: Select all
//hard coding some options
fInst.Settings['Docs.SingleWnd'].v := false;
fInst.Settings['Docs.CanOpenByDblClk'].v := true;
fInst.Settings['Docs.CanOpenByDrop'].v := false; //custom handle
fInst.Settings['Docs.HideSingleTab'].v := false;
fInst.Settings['Docs.AutoSyncDocPanesLayouts'].v := false;
fInst.Settings['DocView.RestoreLastLayout'].v := false; // -< ok
fInst.Settings['Docs.Recents.MaxItemsCount'].v := 0; /// <- this not working
fInst.FireAppPrefsChanged(PXV_AppPrefsChange_Common, nil);
fInst.FireAppPrefsChanged(PXV_AppPrefsChange_Documents, nil);
fInst.FireAppPrefsChanged(PXV_AppPrefsChange_PageDisplay, nil);
When I open the preferences dialog the max number is still > 0 and loading a document places it in history:
image.png
image.png
-ž
You do not have the required permissions to view the files attached to this post.
Sasha - PDF-XChange
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Post
by Sasha - PDF-XChange » Thu Nov 21, 2019 11:59 am
Hello zarkogajic,
I've redirected this question to the appropriate developer - will reply when I have more information.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1467 Joined: Thu Sep 05, 2019 12:35 pm
Post
by zarkogajic » Thu Nov 21, 2019 2:36 pm
Hi Alex,
Sorry, I made a mistake.
The "Docs.Recents.MaxItemsCount" is for this edit:
image.png
However, setting it to "0" is not possible (lowest value accepted is 1).
-ž
You do not have the required permissions to view the files attached to this post.
Sasha - PDF-XChange
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Post
by Sasha - PDF-XChange » Fri Nov 22, 2019 7:13 am
Hello zarkogajic,
We've investigated this issue, and there is no easy way of setting the item count to 0. You can get to the list and remove it items manually - that's the only way for now.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1467 Joined: Thu Sep 05, 2019 12:35 pm
Post
by zarkogajic » Fri Nov 22, 2019 8:21 am
Ok, thanks.
-ž
Sasha - PDF-XChange
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Post
by Sasha - PDF-XChange » Fri Nov 22, 2019 9:22 am
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Sasha - PDF-XChange
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Post
by Sasha - PDF-XChange » Fri Nov 22, 2019 10:58 am
Just remembered: you can always use the
https://sdkhelp.pdf-xchange.com/vi ... earHistory method to clear history if needed before the program start.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
oknpp
User
Posts: 4 Joined: Wed Feb 10, 2021 6:42 pm
Post
by oknpp » Mon Mar 01, 2021 5:15 pm
Hi Support-Team,
I have the same request:
Sasha - Tracker Dev Team wrote: ↑ Fri Nov 22, 2019 7:13 am
... You can get to the list and remove it items manually - that's the only way for now. ...
How can I remove specific items from this list by code? Or did you mean with 'manually' that it is currently not possible by code?
Thanks and kind regards, Olli
Sasha - PDF-XChange
User
Posts: 5522 Joined: Fri Nov 21, 2014 8:27 am
Post
by Sasha - PDF-XChange » Tue Mar 02, 2021 8:31 am
Hello oknpp,
From what I remember, I meant something like this:
viewtopic.php?f=66&t=28041&p=108883&hil ... st#p108883
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ