Re: Mouse Wheel scrolling in Multiple FXText widgets

[email protected] Fri, 16 May 2025 15:26:54 -0500
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
On 2025-05-16 13:25, John Selverian wrote:
> I had a similar problem.
> 
> 
> 
> I have several nested containers/frames/FXScrollWindow/FXTreeList
> 
> 
> 
> It turns out the FXTreeList was always handling the mousewheel event.
> I wound up subclassing FXTreeList and capturing the mousewheel there.
> Maybe you could so the same with the FXText.

Subclassing would work.  But the standard pattern is to bounce first, 
and
this isn't religiously done for SEL_MOUSEWHEEL events.  It should be, so 
I'll
go through stuff and make it so does, because I feel this was an 
unintended
omission.

Most ui events [keyboard, mouse, etc] get bounced first.

You can do beautiful things when you're able to conditionally handle 
mouse
events, so I feel like I'm leaving some nice functionality on the table
if it wasn't implemented.


   -- JVZ