SetLayout() giving static values
Forum rules
You might want to read this if you're looking for priority service
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%).
Use Your Profile Or Signature
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.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
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%).
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.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
admin
- Site Admin
- Posts: 67271
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: SetLayout() giving static values
BTW, those Pane1Width / Height values refer to the "pane", not to the "list". The pane might include tabs and breadcrumb...
FAQ | XY News RSS | XY X
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: SetLayout() giving static values
well, I find
getlayout('Pane1Height') == gettoken(controlposition('L 1', 4, '|');Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
PeterH
- Posts: 2830
- Joined: 21 Nov 2005 20:39
- Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%
Re: SetLayout() giving static values
Oh: missed Don's last post! So very first:
The script "swaps" pane 1 and 2, i.e.
- activates the currently non-active pane
- exchanges the sizes of the panes
I'm used to this for almost 40 years
(This was the smily for grandpa
)
To say: I'm a bit puzzled that pane-sizes shouldn't be part of XY's layout.
But had some tests with Sammay's tip. Very fine! Even versions before the change to GetLayout show correct values! (Puzzled again, that GetLayout and ControlPosition can differ for the same info.
)
OK: (sometimes?) the values differ by 2 pxiels - but this can be tested and, if neccessary, be handled,
So it would be no problem for me to get panes sizes by ControlPosition, then set changed values (by SetLayout).
Though for me it looks a bit strange
Edit: 2 more post now - but no time in the moment. will return later to this.
The script "swaps" pane 1 and 2, i.e.
- activates the currently non-active pane
- exchanges the sizes of the panes
I'm used to this for almost 40 years
(This was the smily for grandpa
To say: I'm a bit puzzled that pane-sizes shouldn't be part of XY's layout.
But had some tests with Sammay's tip. Very fine! Even versions before the change to GetLayout show correct values! (Puzzled again, that GetLayout and ControlPosition can differ for the same info.
OK: (sometimes?) the values differ by 2 pxiels - but this can be tested and, if neccessary, be handled,
So it would be no problem for me to get panes sizes by ControlPosition, then set changed values (by SetLayout).
Though for me it looks a bit strange
Edit: 2 more post now - but no time in the moment. will return later to this.
-
admin
- Site Admin
- Posts: 67271
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: SetLayout() giving static values
Not here. Got a screenshot of the situation? Gotta see where Tabs and Crumbs are...SammaySarkar wrote: ↑18 Feb 2019 12:46 well, I findgetlayout('Pane1Height') == gettoken(controlposition('L 1', 4, '|');
FAQ | XY News RSS | XY X
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: SetLayout() giving static values
no it's ok in 0109.
wait actually I think I had tab and crumbs disabled back then
.
wait actually I think I had tab and crumbs disabled back then
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club