Class_ScrollGUI - updated on 2015-03-13

Post your working scripts, libraries and tools for AHK v1.1 and older
User avatar
HiSoKa
Posts: 480
Joined: 27 Jan 2020, 15:43

Re: Class_ScrollGUI - updated on 2015-03-13

09 Jan 2023, 01:12

Really nice idea, I hadn't thought of it :oops: .
Thank you very much @lmstearn to point it out ..
Stealthle
Posts: 32
Joined: 13 Mar 2017, 00:48

Re: Class_ScrollGUI - updated on 2015-03-13

26 Jan 2023, 04:33

So I'm using this for a bitmap editor I'm making,much like Paint so I'm using it for a picture control so I can edit the image while zoomed in. For zooming in I'm just adjust the picture control size increments of 1x,2x,3x,etc and am using GDI+ to edit pixels and reload the picture to the GUI so it's live editing but I haven't come up with a good way to determine what pixel of the image I have the mouse over relative to the actual image after zooming and scrolling.
Any ideas? Thank you
william_ahk
Posts: 496
Joined: 03 Dec 2018, 20:02

Re: Class_ScrollGUI - updated on 2015-03-13

11 Dec 2023, 22:39

Perhaps add an option to register WM_MOUSEWHEEL for horizontal scrolling (without holding Shift)? In many cases there is only a horizontal scroll bar.
User avatar
lmstearn
Posts: 695
Joined: 11 Aug 2016, 02:32
Contact:

Re: Class_ScrollGUI - updated on 2015-03-13

12 Dec 2023, 00:51

william_ahk wrote:
11 Dec 2023, 22:39
Perhaps add an option to register WM_MOUSEWHEEL for horizontal scrolling (without holding Shift)? In many cases there is only a horizontal scroll bar.
Not sure this can happen without an extra horizontal scroll wheel on the mouse.
It's possible to interchange the scrolling actions to the scroll messages so shift=>scroll affects the vertical and scroll affects the horizontal. In the case where no vertical bar exists, the only thing that comes to mind is something funky like resizing the vertical bar to equal length of the horizontal bar, and "hiding" it from view somewhere in the DC. A fair bit of dodgeree-doo required to make it work, if indeed at all. :|
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
william_ahk
Posts: 496
Joined: 03 Dec 2018, 20:02

Re: Class_ScrollGUI - updated on 2015-03-13

12 Dec 2023, 02:11

lmstearn wrote:
12 Dec 2023, 00:51
Not sure this can happen without an extra horizontal scroll wheel on the mouse.
Well, I've already got it working by removing the Shift key check conditions. :)
User avatar
lmstearn
Posts: 695
Joined: 11 Aug 2016, 02:32
Contact:

Re: Class_ScrollGUI - updated on 2015-03-13

12 Dec 2023, 07:39

:D Same here. Reverse the position of the numbers in

Code: Select all

GetKeyState("Shift") ? 0x114: 0x115, hWnd
:thumbup:
:arrow: itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH

Return to “Scripts and Functions (v1)”

Who is online

Users browsing this forum: fiendhunter and 115 guests