Re: FXTreeList scrolling
"John Selverian" <[email protected]> Fri, 11 Oct 2024 14:00:14 -0400
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Organization | JAHM Software |
| Message-ID | <[email protected]> |
I want the checkboxes and treelist to track each other when scrolling. -----Original Message----- From: Jeroen van der Zijp <[email protected]> Sent: Friday, October 11, 2024 1:24 PM To: John Selverian <[email protected]> Cc: [email protected] Subject: Re: [Foxgui-users] FXTreeList scrolling On Fri, 11 Oct 2024 10:48:11 -0400 "John Selverian" <[email protected]> wrote: >Here is my layout...I don't think I'm handling the SEL_MOUSEWHEEL >message anywhere... > > > FXVerticalFrame* vertical = new FXVerticalFrame(this, LAYOUT_FILL); > FXHorizontalFrame* HF_0 = new FXHorizontalFrame(vertical, >LAYOUT_FILL); > > _leftRightSplitter = new FXSplitter(vertical, this, ID_PLOT_SPLITTER, >SPLITTER_HORIZONTAL | SPLITTER_TRACKING | LAYOUT_FILL); > > FXVerticalFrame* splitter_left_VF_0 = new >FXVerticalFrame(_leftRightSplitter, LAYOUT_FILL | FRAME_LINE, 0, 0, 0, >0, 0, 0, 0, 0, 0, 0); > FXVerticalFrame* splitter_right_VF_0 = new >FXVerticalFrame(_leftRightSplitter, LAYOUT_FILL | FRAME_NONE, 0, 0, 0, >0, 0, 0, 0, 0, 0, 0); > > _checkBox_SW = new FXScrollWindow(splitter_left_VF_0, >HSCROLLING_OFF | LAYOUT_FILL); > FXHorizontalFrame* HF_SW = new >FXHorizontalFrame(_checkBox_SW, LAYOUT_FILL | FRAME_NONE); > _checkBoxes_VF_0 = new FXVerticalFrame(HF_SW, LAYOUT_FILL_Y, 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 | HSCROLLING_OFF); > // VSCROLLING_OFF | HSCROLLING_OFF has no effect, both of these lines >have the same behavior > //_treeList_TL = new FXTreeList(HF_SW, this, ID_TREE_LIST, >LAYOUT_FILL | TREELIST_SINGLESELECT); > So you have a FXTreeList inside of a FXScrollWindow? Why? FXTreeList already is scrollable. -- JVZ -- +---------------------------------------------------------------- ------------+ | Copyright (C) 14:00 11/25/2023 Jeroen van der Zijp. All Rights Reserved. | +---------------------------------------------------------------- ------------+