Code: Select all
Me.docPreview.ShowPane("commentsView", True)
Simon
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Code: Select all
Me.docPreview.ShowPane("commentsView", True)
Code: Select all
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
oldLI.Remove();
PDFXEdit.tagSIZE sz;
sz.cx = sz.cy = 200;
// add pane bottom
PDFXEdit.IUIX_LayoutItem newLI = layout.Insert(pane, title, root, ref sz, style);