AnsweredAssumed Answered

Resize docking window via code

Question asked by Nocodes79 Champion on Dec 1, 2016
Latest reply on Dec 5, 2016 by Nocodes79

Hi everybody,


we have a custom docking window to show a treeview of an AF DB in processBook.

We  can easily edit the docking window width at add-in connection.

this.dockWindow.Width = width;


Now we have to change its width when the add-in changes to pinned to unpinned. We subscribed the event

this.dockWindow.Show += dockWindow_Show;

Then we try to edit the width:

  private void dockWindow_Show(bool Show, bool Pinned)
            if (Pinned)
                this.dockWindow.Width = 230;
                this.dockWindow.Width = 400;

Anyway the new width is not applied. We also tried setting the width at view and ctrlView level, but this are read-only.


Is there a way to resize a docking window via code?