Re: FXScrollWindow

[email protected] Mon, 13 Nov 2023 16:14:17 +0000
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
On 2023-11-13 14:59, John Selverian wrote:
> I have the following problem with scrolling. I have a
> FXScrollWindow with a FXHorizontalFrame. The FXHorizontalFrame
> has a FXVerticalFrame which I fill with FXCheckButton then I add
> a FXTreeList to the FXHorizontalFrame.
> 
> 
> 
> When I put the mouse over the FXCheckButton and scroll it works
> fine. When I place the mouse over the FXTreeList and scroll
> nothing happens. How can I get it to scroll when  the mouse over
> the FXTreeList?



FXTreeList itself can also scroll, so it consumes SEL_MOUSEWHEEL events,
and thereby prevents FXScrollWindow from receiving them.

If FXTreeList is forbidden to scroll (e.g. VSCROLLING_OFF or 
HSCROLLING_OFF,
then it's onMouseWheel returns 0.  In that case, FXApp tries to dispatch
the SEL_MOUSEWHEEL to the parent of FXTreeList (and its parent, until
the events is consumed somewhere).


Hope this helps,

           -- JVZ