From: Lyle Johnson Date: 2002-12-11T08:35:21+09:00 Subject: Re: FXRuby : Setting Default Height/Width in an FXList Jason Persampieri wrote: > Now, I need to be able to add widgets at runtime. > This 'seems' to work ok as parentFrame.numChildren > returns the correct value, but the widgets just aren't > appearing. > > I've tried all sorts of stuff like recalc, resize, > hide then show, raise, etc on all widgets involved > (parents and children). What the heck am I missing? You need to call create() on widgets that you add after the program's running, e.g. aNewList = FXList.new(parentFrame, ...) aNewList.create > On a side note, you show FXListItem as being written > in Ruby... Yes, that was me lying. I mean distorting reality. > I've been trying to look through the FXRuby > source to find where all of these classes are defined > but I can't seem to find them...... The code for FXListItem isn't written in Ruby, and this is true for almost all of FXRuby. FXRuby is a wrapper around the FOX library, which is C++ code. The (fake) Ruby code that I showed for FXListItem#getHeight is a "translation" of the corresponding C++ function into Ruby.