change width of a pane  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, 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.
Post Reply
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

change width of a pane

Post by jusWest »

How do i set the width of for example the bookmarks pane?

I want to save the width of the panes when the applications quits. The panes remember their last width when the application is running but "forgets" it when application quits.

Tried this, but that dit not work:

Code: Select all

            IUIX_LayoutItem item = _pdfctl.Doc.ActiveView.Panes.Layout.GetItem(_pdfctl.Doc.ActiveView.BookmarksView.Obj);
            _pdfctl.Doc.ActiveView.Panes.Layout.LockUpdates();
            int addFlag = (int)UIX_LayoutItemStyleFlags.UIX_LayoutItemStyle_FixedSize;
            item.SetStyle(addFlag, addFlag);
            tagSIZE sz;
            sz.cx = sz.cy = width;
            item.set_FixedSize(sz);
            _pdfctl.Doc.ActiveView.Panes.Layout.UnLockUpdates();

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

Re: change width of a pane  SOLVED

Post by Sasha - Tracker Dev Team »

Hello jusWest,

Well the simplest way is to just store these values in the registry/file (save settings) like the Editor does and then restore them on the application launch. The FullDemo illustrates how to work with settings and how to do that automatically.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply