in reply to Re^2: Tk::BrowseEntry listbox scrollbar with Mousewheel on Windows
in thread Tk::BrowseEntry listbox scrollbar with Mousewheel on Windows
Hi,
What did I miss? You only want to yview and not select? Can you not copy WheelsUp and do yview instead of updown?
update:
If you remove your bind call and replace it with $mw->focusFollowsMouse; then the Tk::Listbox natural wheel bindings work to scroll the listbox up down without changing the selection
But if focusFollowsMouse is too much focus flipping, simply give the focus to the listbox when the button is pressed
$b->Subwidget('arrow')->configure( -command => [ 'focus', $b->Subwidget('slistbox') ], );
Also, $mw->WidgetDump can help you peek inside
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tk::BrowseEntry listbox scrollbar with Mousewheel on Windows
by perltux (Monk) on Apr 04, 2017 at 00:15 UTC | |
by beech (Parson) on Apr 04, 2017 at 00:53 UTC | |
by perltux (Monk) on Apr 04, 2017 at 03:48 UTC | |
by beech (Parson) on Apr 04, 2017 at 06:58 UTC | |
by perltux (Monk) on Apr 04, 2017 at 16:22 UTC |