same size with one click

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
7iben
Posts: 130
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.
(OS: Windows 11 Pro on Parallels ARM Virtual Machine - XY: Current x64 beta - Display: 3440x1440 @ 125%)

admin
Site Admin
Posts: 66220
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 130
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
To see the attached files, you need to log into the forum.
(OS: Windows 11 Pro on Parallels ARM Virtual Machine - XY: Current x64 beta - Display: 3440x1440 @ 125%)

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

Re: same size with one click

Post by admin »

:veryconfused: Not here :veryconfused:

jupe
Posts: 3462
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: 66220
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: same size with one click

Post by admin »

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

Daniel0312
Posts: 238
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
XY32 latest stable / Windows11 23H2 / Scaling 100%

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

Re: same size with one click

Post by 7iben »

Thank you :tup: :tup: :tup: :tup:
(OS: Windows 11 Pro on Parallels ARM Virtual Machine - XY: Current x64 beta - Display: 3440x1440 @ 125%)

jupe
Posts: 3462
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: 238
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
XY32 latest stable / Windows11 23H2 / Scaling 100%

Malarki
Posts: 211
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

Re: same size with one click

Post by Malarki »

I have the same issue as user 7iben (the OP) showed. But rather than install a script I want to restore my XY to its previous / ::fresh behavior.

In a ::fresh instance now (and the way I remember and want), double-clicking on the splitter sets both panes to equal width.

But in my customized instance it minimizes the right-side pane, as 7iben showed. So I've somehow broken this action.

I can't figure out what setting or tweak controls this. I've checked all Custom Event Actions and the possibly relevant tweaks in the .INI file. They're either the same as the ::fresh instance or changing them has no effect on this issue.

--> Any ideas on what setting or tweak could be involved?

Thanks.

XY ver 27.00.0005 / Windows 10 x64

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

Re: same size with one click

Post by jupe »

I am betting you both probably have this enabled:

Panes | Swap Panes

@Don: This looks to be a bug :bug:
                  >>>>>> Moved topic to Bug Reports

Malarki
Posts: 211
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

Re: same size with one click

Post by Malarki »

Thanks, Jupe, you're right - I have Swap Panes checkmarked. Must have done that for some job long ago and forgotten it.

With Swap Panes unchecked a double-click on the splitter works as I want: it centers the splitter between the two panes, making them equal sized.

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

Re: same size with one click

Post by admin »

jupe wrote: 02 Apr 2025 20:59 I am betting you both probably have this enabled:

Panes | Swap Panes

@Don: This looks to be a bug :bug:
                  >>>>>> Moved topic to Bug Reports
Yep. :tup: Fix comes.

Post Reply