same size with one click
same size with one click
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.
-
- Site Admin
- Posts: 61139
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: same size with one click
Do you mean the size of the lists in Dual Pane? If yes, double-click the splitter between them.
FAQ | XY News RSS | XY Twitter
Re: same size with one click
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?
Re: same size with one click
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>=!");
-
- Site Admin
- Posts: 61139
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: same size with one click
Wow, sometimes the power of scripting surprises (even) me. ![Smile :)](./images/smilies/icon_smile.gif)
![Smile :)](./images/smilies/icon_smile.gif)
FAQ | XY News RSS | XY Twitter
-
- Posts: 165
- Joined: 15 Feb 2016 10:48
Re: same size with one click
@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 ?
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
Windows7 SP1 x64 / XY latest stable
Re: same size with one click
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.
-
- Posts: 165
- Joined: 15 Feb 2016 10:48
Re: same size with one click
Thanks @jupe, never would have worked it out myself.
Daniel
Windows7 SP1 x64 / XY latest stable
Windows7 SP1 x64 / XY latest stable