Page 1 of 1

Saving and resuing column widths

Posted: 29 Jan 2020 14:41
by Anthraquinone
I am not sure if this is the correct section of the forum for this but I will start here.

I normally use dual panes but occasionally switch to single pane mode using the "dual pane" button. When in single pane mode I expand the first (name) column but when switching back to dual pane mode the column width is then too wide,

Is there any way of saving the dual pane column widths and restoring then on return to dual pane mode. I would want this all to be done using a single button. Any other way does not save any time.

Or can I store and access column layouts for both single and dual panes that could then be called up as defaults again using a single button.

AQ

Re: Saving and resuing column widths

Posted: 29 Jan 2020 15:03
by highend
Sizes only, without the corresponding columns? No. Otherwise:

Set up single pane columns, execute

Code: Select all

    if (get("#800")) { columnlayout("dual_pane", "save"); }
    else { columnlayout("single_pane", "save"); }
Switch to dual pane, set up the active one, execute the above script again.

And the loading button script (execute it after switching):

Code: Select all

    if (get("#800")) { columnlayout("dual_pane"); }
    else { columnlayout("single_pane"); }