TypingAid icon indicating copy to clipboard operation
TypingAid copied to clipboard

Wheel over ListBox should scroll the ListBox not the editor.

Open rommmcek opened this issue 10 years ago • 5 comments

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!

rommmcek avatar Aug 05 '15 14:08 rommmcek

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 avatar Aug 05 '15 16:08 ManiacDC

https://www.thurrott.com/windows/windows-10/2435/windows-10-tip-scroll-inactive-windows

ManiacDC avatar Aug 05 '15 16:08 ManiacDC

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

rommmcek avatar Aug 06 '15 18:08 rommmcek

Ah, I see... seems doable.

ManiacDC avatar Aug 18 '15 11:08 ManiacDC

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

rommmcek avatar Dec 20 '15 22:12 rommmcek