Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wheel over ListBox should scroll the ListBox not the editor. #64

Open
rommmcek opened this issue Aug 5, 2015 · 5 comments
Open

Wheel over ListBox should scroll the ListBox not the editor. #64

rommmcek opened this issue Aug 5, 2015 · 5 comments

Comments

@rommmcek
Copy link

rommmcek commented Aug 5, 2015

When hovering the mouse cursor over the displaying ListBox suggestions, the mouse wheel scrolls the application underneath. Even if it's a minor flaw, is this not what user would expect!

@ManiacDC
Copy link
Owner

ManiacDC commented Aug 5, 2015

Windows will only scroll the active window. The ListBox never allows itself to stay as the active window.

Windows 10 adds a feature where inactive windows can be scrolled when the mouse is over them. After upgrading to Windows 10 and enabling this feature, can someone please confirm whether this is still an issue or not? I won't be upgrading for a while.

@ManiacDC ManiacDC added this to the On Hold milestone Aug 5, 2015
@ManiacDC
Copy link
Owner

ManiacDC commented Aug 5, 2015

@rommmcek
Copy link
Author

rommmcek commented Aug 6, 2015

This will work with "normal" mouse wheel, but with some sophisticated TouchPads won't!

#NoEnv

FontSize := 15
Tabby := FontSize*0.8

Gui, BoxList: Margin, 1, 1
Gui, BoxList: -Caption
Gui, BoxList: Color, BFCDEA
Gui, BoxList: Font, s%FontSize%, Ariel
Gui, BoxList: add, ListBox, t%Tabby% w220 r6 hWndhlBoLis vLangua, 1`tpotato|2`tchives|3`tcelery|`tparsley
                                                                    |`tgarlic|`tonion|`tshalot|`tthyme

Gui, BoxList: Show, NoActivate

Esc::
GuiClose:
ExitApp

WheelDown::
    MouseGetPos , , , , control
    if (Control = "ListBox1")
        SendMessage 0x115,1,0,ListBox1, ahk_class AutoHotkeyGUI
else
    Send, {WheelDown}   
return

WheelUp::
MouseGetPos , , , , control
     if (Control = "ListBox1")
    SendMessage 0x115,0,0,ListBox1, ahk_class AutoHotkeyGUI  
else
    Send, {WheelUp} 
return

@ManiacDC
Copy link
Owner

Ah, I see... seems doable.

@ManiacDC ManiacDC removed this from the On Hold milestone Aug 18, 2015
@rommmcek
Copy link
Author

As you predicted, on Windows 10 this is not an issue anymore.
However, it doesn't work with touchpad neither!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants