Page 1 of 1

Scrolling area within resizable window

Posted: 22 Sep 2020, 16:52
by thebbandit
I have gathered a bit of information about how to implement a scrolling window, and I want to take that idea a bit further. I am running into a few issues.

First the main window cannot be given the +Resize option, or it's contents will drift off the window diagonally down and to the right. I think this is related to the third question.

Second, the scrolling with the mouse will only work at first launch. Once you click anywhere in the window it no longer works until you restart the script. Is there a way to scroll the window panel that is underneath the mouse?

Thirdly, it does not consider the size of the child windows as part of the scroll bar height or width calculation. Does anyone know of a way to add the child windows to the calculation?

Here is the code taken from Lexikos' example https://autohotkey.com/board/topic/26033-scrollable-gui-proof-of-concept/#entry168174
Example
Ideally, I would like to create a Main Gui window which can be resized. This window would contain several child windows which would hold the contents (settings and other such options) in a scrolling area.
Something Like This:
Example of GUI.png
Example of GUI.png (75.21 KiB) Viewed 587 times

Re: Scrolling area within resizable window

Posted: 22 Sep 2020, 19:24
by kczx3
I can post something tomorrow I’ve used based on his code. Though it was made using an older AHK v2 version.

Re: Scrolling area within resizable window

Posted: 28 Sep 2020, 20:20
by thebbandit
kczx3 wrote:
22 Sep 2020, 19:24
I can post something tomorrow I’ve used based on his code. Though it was made using an older AHK v2 version.
If you would that would be very nice, I have been trying to figure this out for a while

Re: Scrolling area within resizable window

Posted: 29 Sep 2020, 11:16
by kczx3
See if that helps you any. There's obviously some noise going on in there that you'll have to ignore/work-around.