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);
-ž