Scrolling area within resizable window

Get help with using AutoHotkey and its commands and hotkeys
thebbandit
Posts: 31
Joined: 02 Jul 2019, 11:34

Scrolling area within resizable window

22 Sep 2020, 16:52

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 140 times
User avatar
kczx3
Posts: 1197
Joined: 06 Oct 2015, 21:39

Re: Scrolling area within resizable window

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.
thebbandit
Posts: 31
Joined: 02 Jul 2019, 11:34

Re: Scrolling area within resizable window

28 Sep 2020, 20:20

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
User avatar
kczx3
Posts: 1197
Joined: 06 Oct 2015, 21:39

Re: Scrolling area within resizable window

29 Sep 2020, 11:16

See if that helps you any. There's obviously some noise going on in there that you'll have to ignore/work-around.
Attachments
AutoLabs.7z
(10.63 KiB) Downloaded 2 times

Return to “Ask For Help”

Who is online

Users browsing this forum: anv, artur1884, Bing [Bot], Rohwedder, submeg and 44 guests