Saving and resuing column widths

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Anthraquinone
Posts: 24
Joined: 08 May 2013 23:44

Saving and resuing column widths

Post 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

highend
Posts: 14582
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Saving and resuing column widths

Post 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"); }
One of my scripts helped you out? Please donate via Paypal

Post Reply