Tabbed document bar options

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

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.
Post Reply
lidds
User
Posts: 418
Joined: Sat May 16, 2009 1:55 pm

Tabbed document bar options

Post by lidds » Fri Aug 30, 2019 12:01 am

I want to stop the popup menu and the close document (X) from being displayed, is this possible?
2019-08-30_00-42-29.png
I have tried the following, but this does not remove the Close Document (X)

Code: Select all

            layout = Me.docPreview.Inst.MainFrm(PDFControlNum).View.DocViewsArea.Panes.Layout
            For Each docLayout As PDFXEdit.IUIX_LayoutItem In layout.Root
                docLayout.SetStyle(False, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_AddNewTabBtn))
                docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_HideCloseTabsBtn))
                docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_NoFloat))
                docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_HideOneTab))
                docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_NoDock))
                docLayout.SetStyle(True, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_TabsNoReorder))
                docLayout.SetStyle(False, CInt(PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_CloseActiveTabBtn))
            Next
Thanks

Simon

lidds
User
Posts: 418
Joined: Sat May 16, 2009 1:55 pm

Re: Tabbed document bar options

Post by lidds » Sun Sep 01, 2019 1:38 am

Any ideas from anyone?

Thanks

Simon

User avatar
Sasha - Tracker Dev Team
User
Posts: 4526
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Tabbed document bar options

Post by Sasha - Tracker Dev Team » Wed Sep 04, 2019 6:39 am

Hello Simon,

You have already asked the same question:
viewtopic.php?f=66&t=29758&p=117857&hil ... tn#p117900

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

lidds
User
Posts: 418
Joined: Sat May 16, 2009 1:55 pm

Re: Tabbed document bar options

Post by lidds » Wed Sep 04, 2019 9:01 am

Sorry Alex, I should have been clearer. This did work until I upgraded to PDF Xchange Editor SDK 8.0.332, now it does not seem to remove the close document "X" on the far right of the tab control.

Thanks

Simon

User avatar
Sasha - Tracker Dev Team
User
Posts: 4526
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Tabbed document bar options

Post by Sasha - Tracker Dev Team » Fri Sep 06, 2019 1:03 pm

Hello Simon,

Recreated this behavior and forwarded it to the appropriate developer for investigation.
As for your question, I believe you have already asked this:
viewtopic.php?f=66&t=29757&p=117658&hil ... nu#p117658

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1949
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Tabbed document bar options

Post by Vasyl-Tracker Dev Team » Wed Oct 02, 2019 8:36 pm

Hi Simon.

We reproduced it and will fix in the next build.

Currently, since 332 build, to remove the CloseActiveTab btn permanently, you may use other simple method:

Code: Select all

pdfCtl.Frame.View.DocViewsArea.Panes.Layout.Obj.SetStyle(
(Int64)PDFXEdit.UIX_LayoutStyleFlags.UIX_LayoutStyle_HideCloseActiveTabBtn,
(Int64)PDFXEdit.UIX_LayoutStyleFlags.UIX_LayoutStyle_HideCloseActiveTabBtn);
HTH.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

Post Reply