PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: Tracker Support, Paul - Tracker Supp, Chris - Tracker Supp, Vasyl-Tracker Dev Team, 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.
Topic Author
Posts: 162
Joined: Sat May 16, 2009 1:55 pm

Force comments pane to dock at bottom

Wed Aug 02, 2017 10:40 am

I am opening the comments docking pane using the below command. I was wondering if there is a way to tell it to dock at the bottom?

Me.docPreview.ShowPane("commentsView", True)


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

Re: Force comments pane to dock at bottom

Fri Aug 04, 2017 7:33 am

Hello Simon,

I will have to ask a developer who is responsible for this feature, whether this is possible to do via the SDK. Once he replies i will write back.

Join us at Google+:
Subscribe at:
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 1824
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Force comments pane to dock at bottom

Thu Aug 10, 2017 6:35 pm

Hi Simon.

Sorry for delay with answer. The working code for your case:

PDFXEdit.IPXV_Document doc = pdfCtl.Doc;

PDFXEdit.IUIX_Obj pane = doc.ActiveView.CommentsView.Obj;
PDFXEdit.IUIX_Layout layout = doc.ActiveView.Panes.Layout;
PDFXEdit.IUIX_LayoutItem root = layout.Root;

// layout's root element by default contains list of sub-elements with vertical splitters between each one
// firstly we must 'encapsulate' all existing root's children to separate sub-container with the same style with vertical splitters
layout.WrapAllChildrenByNewSubContainer(root, root.Style);
// currently is safe to change root's style to get horizontal splitters
root.Style = root.Style & (int)~PDFXEdit.UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_VertSplitters;

// find corresponding layout item for pane and keep some attributes of it
PDFXEdit.IUIX_LayoutItem oldLI = layout.GetItem(pane);
string title = oldLI.Title;
string tooltip = oldLI.Tooltip;
int style = oldLI.Style;

// remove pane from layout

PDFXEdit.tagSIZE sz;
sz.cx = sz.cy = 200;

// add pane bottom
PDFXEdit.IUIX_LayoutItem newLI = layout.Insert(pane, title, root, ref sz, style);

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.

Who is online

Users browsing this forum: No registered users and 1 guest