same size with one click

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
7iben
Posts: 86
Joined: 04 Apr 2019 18:22

same size with one click

Post by 7iben »

Hello, is there a way to make the tab on the left and the one on the right the same size with one click? Or is there a script for this? Many thanks in advance.

admin
Site Admin
Posts: 61139
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: same size with one click

Post by admin »

Do you mean the size of the lists in Dual Pane? If yes, double-click the splitter between them.

7iben
Posts: 86
Joined: 04 Apr 2019 18:22

Re: same size with one click

Post by 7iben »

When I double click on the splitter the right field shrinks to the right instead of making both fields the same size. Maybe I have set something wrong?
Bildschirmfoto 2024-05-30 um 10.46.41.png
Bildschirmfoto 2024-05-30 um 10.46.41.png (105.13 KiB) Viewed 373 times

admin
Site Admin
Posts: 61139
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: same size with one click

Post by admin »

:veryconfused: Not here :veryconfused:

jupe
Posts: 2893
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: same size with one click

Post by jupe »

The splitter is the divider between panes not the toolbar button, if that was what you were dbl clicking on. Here is a script to do it if you want:

setlayout("Pane1<get #801 Height Width>=!");

admin
Site Admin
Posts: 61139
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: same size with one click

Post by admin »

Wow, sometimes the power of scripting surprises (even) me. :)

Daniel0312
Posts: 165
Joined: 15 Feb 2016 10:48

Re: same size with one click

Post by Daniel0312 »

@Jupe
works great indeed.
I just don't see how it works.
I understand that "For Boolean values (0 or 1) you can pass "!" to mean "toggle". But Pane1Width or Height just aren't boolean.
Could you please explain ?
Daniel
Windows7 SP1 x64 / XY latest stable

7iben
Posts: 86
Joined: 04 Apr 2019 18:22

Re: same size with one click

Post by 7iben »

Thank you :tup: :tup: :tup: :tup:

jupe
Posts: 2893
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: same size with one click

Post by jupe »

When any positive number is inverted the return is 0, so I could have chosen to write it as =0 since that is what is actually being sent, which is technically an invalid input, so XY sets the default size which is 50/50.

Daniel0312
Posts: 165
Joined: 15 Feb 2016 10:48

Re: same size with one click

Post by Daniel0312 »

Thanks @jupe, never would have worked it out myself.
Daniel
Windows7 SP1 x64 / XY latest stable

Post Reply