Re: FXScrollWindow
"John Selverian" <[email protected]> Mon, 13 Nov 2023 15:41:01 -0500
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Organization | JAHM Software |
| Message-ID | <[email protected]> |
I added VSCROLLING_OFF up the chain but it still does not scroll when over the treelist, it still works when over the checkboxes. I can scroll horizontally when over the treelist. _checkBox_SW = new FXScrollWindow(splitter_left_VF_0, HSCROLLING_OFF | LAYOUT_FILL); FXHorizontalFrame* HF_SW = new FXHorizontalFrame(_checkBox_SW, LAYOUT_FILL | FRAME_SUNKEN | VSCROLLING_OFF); _checkBoxes_VF_0 = new FXVerticalFrame(HF_SW, LAYOUT_FILL_Y | VSCROLLING_OFF, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); _treeList_TL = new FXTreeList(HF_SW, this, ID_TREE_LIST, LAYOUT_FILL | TREELIST_SINGLESELECT | VSCROLLING_OFF); -----Original Message----- From: [email protected] <[email protected]> Sent: Monday, November 13, 2023 11:14 AM To: [email protected] Cc: [email protected] Subject: Re: [Foxgui-users] FXScrollWindow 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