Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Tk::BrowseEntry listbox scrollbar with Mousewheel on Windows

by kcott (Archbishop)
on Apr 03, 2017 at 10:54 UTC ( [id://1186810]=note: print w/replies, xml ) Need Help??


in reply to Tk::BrowseEntry listbox scrollbar with Mousewheel on Windows

G'day perltux,

"... but despite trying various subwidget targets ..."

I often find checking the source code provides answers for this type of issue. In this case, &SetBindings, in http://cpansearch.perl.org/src/SREZIC/Tk-804.033/Tixish/BrowseEntry.pm, has:

... # bindings for listbox my $sl = $w->Subwidget('slistbox'); my $l = $sl->Subwidget('listbox'); $l->bind(...

I don't have MSWin to check your specific OS problem.

The DESCRIPTION of Tk::BrowseEntry starts:

"BrowseEntry is a poor man's ComboBox."

Instead of rolling your own bindings, and potentially other functionality, for Tk::BrowseEntry, perhaps consider using one of the more feature-rich widgets, such as Tk::JBrowseEntry or Tk::JComboBox.

— Ken

Replies are listed 'Best First'.
Re^2: Tk::BrowseEntry listbox scrollbar with Mousewheel on Windows
by perltux (Monk) on Apr 03, 2017 at 13:00 UTC
    Yes, I did go through the source code of BrowseEntry.pm, that's how I found those various subwidgets to try (see the commented out lines in my example source code) but none of them seem to work when it comes to the mousewheel binding of the pop-up listbox on Windows.

    Tk::JBrowseEntry or Tk::JComboBox were considered in the past but they had other shortcomings that made them unsuitable and which made me choose BrowseEntry.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1186810]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-05-30 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found