PDA

View Full Version : Scrollbars, subwindows and windowlists



celestian
December 18th, 2020, 21:37
I am attempting to have a single scrollbar for a windowclass that has a few subwindows. One is a windowlist.

I tried to put a scrollbar on the subwindow itself but all it will do is this.

What I want is a single scrollbar for the entire window. Right now it's just the header bit getting the scrollbar, not the "selected" windowclass entirely which includes several other subwindows.

Is there a way to fix this? (note all windowlists are set to <noscroll />. I "removed" the scrollbar configuration from said subwindows to test.

https://i.imgur.com/EsLXQpc.gif



<subwindow_cta_selected name="selected" />
<scrollbar>
<anchored to="selected" offset="-5,-10" />
<target>selected</target>
</scrollbar>


The subwindow_cta_selected is that entire windowclass but as you can see it only seems to scroll the upper header subwindow.

Moon Wizard
December 19th, 2020, 17:23
As with many of the deep issues that you have found and show pictures of, I have no way to easily set up or test this issue (as no other code is doing exactly what you are doing).
Please provide example extension and data to show the issue for faster identification and fix.

Thanks,
JPG

celestian
December 19th, 2020, 18:22
As with many of the deep issues that you have found and show pictures of, I have no way to easily set up or test this issue (as no other code is doing exactly what you are doing).
Please provide example extension and data to show the issue for faster identification and fix.

Thanks,
JPG

I think the simplest form is a subwindow A (the right windowclass) has 2 subwindows within (header subwindow B and actions subwindow C and subwindow C has a windowlist). Then I place a scrollbar on the subwindow that is attached to subwindow A.

If thats not helpful, these CT changes should go out next week to the test channel and I'll pin-point the code where I'm having the issues.

Moon Wizard
December 19th, 2020, 23:33
I would prefer not to guess, or try to recreate a specific scenario. It's best to have a specific example with data.

Regards,
JPG

celestian
December 20th, 2020, 01:46
I would prefer not to guess, or try to recreate a specific scenario. It's best to have a specific example with data.

Regards,
JPG

Wasn't planning to make ya guess (the pin the code comment). If it requires more than that I probably will simply have to deal with the flaw (this and the other nested subwindow overlapping issue). Breaking out the entirely piece of work (the CT) into an extension is a pretty large project that I do not have time for unfortunately.