Page 1 of 1

Change Names of Document Tabs

Posted: Tue Aug 31, 2021 1:03 am
by jeffp
After making changes in the IPXC_DocSrcInfo from the TPXV_Control, the name displayed on the document tabs across the top do not change.

FControl.Frame.View.DocViewsArea.DocViews.Doc.CoreDoc.SrcInfo.CustDispTitle:= 'New PDF';
FControl.Frame.View.DocViewsArea.DocViews.Doc.CoreDoc.SrcInfo.CustDispFileName := 'New PDF.pdf';
FControl.Frame.View.DocViewsArea.DocViews.Doc.CoreDoc.SrcInfo.CustFileName:= 'New PDF.pdf';

I'm working with new files that haven't been saved yet. They just get the name "New Document" and I want to change that name.

How do I change the name appearing on the document tabs?

--Jeff

Re: Change Names of Document Tabs

Posted: Tue Aug 31, 2021 7:49 am
by zarkogajic
Hi Jeff,

Try with

Code: Select all

IPXV_Inst Inst;
IPXV_Document Document;
IEvent evt;

---

Document.CoreDoc.SrcInfo.CustDispTitle := 'custom title';

evt := Document.EventServer.CreateNewEvent(Inst.Str2ID('e.document.propsChanged'), Param_T(Document), DocViewFlag_DisplayDocTitle);
Document.EventServer.FireEvent(evt, Document);
p.s.
Some further info: https://forum.pdf-xchange.com/viewtopic.php?f=66&t=34482&p=143413

-žarko

Re: Change Names of Document Tabs

Posted: Tue Aug 31, 2021 2:16 pm
by jeffp
That worked. Thanks!

Change Names of Document Tabs

Posted: Fri Nov 05, 2021 8:37 pm
by TrackerSupp-Daniel
:)