From: Lyle Johnson Date: 2003-02-15T12:13:28+09:00 Subject: Re: FXRuby: FXList FRAME_RAISED does not work Matthias Wieding-Drewes wrote: > The following does not work as expected. > > FXList.new(app, 5, nil, 0, LIST_SINGLESELECT|FRAME_RAISED) > > It selects only one (so i'v put it at the right position) but there is > no frame (FRAME_SUNKEN neither). wich suprises me because due to the > RDdocs(i haven't testet this personally) FXList should inherit this from > FXWindow, and it is working with FXTreeList. Frame hints are only meaningful to classes descended from FXFrame. Neither FXList nor FXTreeList is derived from FXFrame, so they are unaffected by any frame hints that you might pass into their constructors. If you want either of these widgets to appear in, say, a raised frame, the solution is to create a frame widget of some kind, e.g. listFrame = FXVerticalFrame.new(p, FRAME_RAISED|FRAME_THICK) and then make the list as a child of that frame: list = FXList.new(listFrame, 5, nil, 0, LIST_SINGLESELECT|LAYOUT_FILL_X|LAYOUT_FILL_Y) Hope this helps, Lyle