Wheel over ListBox should scroll the ListBox not the editor.
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!
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.
https://www.thurrott.com/windows/windows-10/2435/windows-10-tip-scroll-inactive-windows
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
Ah, I see... seems doable.
As you predicted, on Windows 10 this is not an issue anymore. However, it doesn't work with touchpad neither!