Really nice idea, I hadn't thought of it .
Thank you very much @lmstearn to point it out ..
Class_ScrollGUI - updated on 2015-03-13
Re: Class_ScrollGUI - updated on 2015-03-13
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
Any ideas? Thank you
-
- Posts: 496
- Joined: 03 Dec 2018, 20:02
Re: Class_ScrollGUI - updated on 2015-03-13
Perhaps add an option to register WM_MOUSEWHEEL for horizontal scrolling (without holding Shift)? In many cases there is only a horizontal scroll bar.
Re: Class_ScrollGUI - updated on 2015-03-13
Not sure this can happen without an extra horizontal scroll wheel on the mouse.william_ahk wrote: ↑11 Dec 2023, 22:39Perhaps add an option to register WM_MOUSEWHEEL for horizontal scrolling (without holding Shift)? In many cases there is only a horizontal scroll bar.
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.
itros "ylbbub eht tuO kaerB" a ni kcuts m'I pleH
-
- Posts: 496
- Joined: 03 Dec 2018, 20:02
Re: Class_ScrollGUI - updated on 2015-03-13
Same here. Reverse the position of the numbers in
Code: Select all
GetKeyState("Shift") ? 0x114: 0x115, hWnd
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