Re: FXTreeList scrolling

"John Selverian" <[email protected]> Mon, 21 Oct 2024 09:33:03 -0400
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization JAHM Software
Message-ID <[email protected]>
I wound up making a TreeList_jhs1 class derived from FXTreeList
class which only contains:


FXMAPFUNC(SEL_MOUSEWHEEL,0,TreeList_jhs1::onCmdNotUsed)

/****************************************************************
***************/
long TreeList_jhs1::onCmdNotUsed(FXObject*, FXSelector, void*)
{
	return 0;
}
/****************************************************************
************/







-----Original Message-----
From: [email protected] <[email protected]> 
Sent: Monday, October 21, 2024 8:22 AM
To: [email protected]
Cc: 'Jeroen van der Zijp' <[email protected]>;
[email protected]
Subject: Re: [Foxgui-users] FXTreeList scrolling

On 2024-10-20 09:19, John Selverian wrote:
> If I hide() the checkbox vertical frame the scrolling over the 
> treeList works. I'm not handling any scrolling myself, I'm
relying the 
> default behavior. Not sure what this means.

If it is hidden, it will not receive events.  So then events are
passed to the widget underneath, (recursively) until they reach a
place where they're handled.

In an FXScrollWindow or FXScrollArea, the mouse wheel or
right-mouse scroll is handled.  But if it has child windows (in
the case of FXScrollWindow), or is subclassed (FXScrollArea),
those events may be getting handled, and may not reach, or may
only conditionally reach the scrolling windows...


   -- JVZ