Page 1 of 1

Make 2 Panes Equal in Size

Posted: 27 Aug 2023 23:25
by stoik
This is definitely a minor issue,
but it would be a nice little convenience,
and (I suspect) very quick to program.

Description :
all the time I use dual panes, classic left and right,
sometimes - for one reason or another - I move the middle slider
to make one pane larger or smaller;
but when I am done with that particular task
there is no easy way to restore the settings
where both panes are of equal width.
I have to use a screen ruler to make them equal.

Suggestion :
In the XYplorer menu, under Panes,
add an entry "Make panes equal size".

Thanks !

Re: Make 2 Panes Equal in Size

Posted: 27 Aug 2023 23:32
by highend
Just use a simple script?

Code: Select all

    $halfWidth = round((getkey("Pane1Width", "Layout") + getkey("Pane2Width", "Layout")) * 0.5, 0);

    if(get("pane") == 1) {
        focus "P2"; setlayout("Pane1Width=$halfWidth, Pane2Width=$halfWidth");
    } else {
        focus "P1"; setlayout("Pane1Width=$halfWidth, Pane2Width=$halfWidth");
    }

Re: Make 2 Panes Equal in Size

Posted: 28 Aug 2023 08:50
by admin
Double-click the splitter between the panes. :)

Re: Make 2 Panes Equal in Size

Posted: 28 Aug 2023 09:02
by highend
A button is easier to click than the splitter line on high-res monitors :mrgreen:

Re: Make 2 Panes Equal in Size

Posted: 28 Aug 2023 11:28
by admin
Yep, this feature is "fine motor skills required".

Re: Make 2 Panes Equal in Size

Posted: 01 Sep 2023 12:57
by stoik
Oh, thank You guys,
Your tips are fantastic !!

Both button and divider
are very convenient.