On May 10, 2004, at 11:42 PM, Hal Fulton wrote:
> Now, there are two problems...
>
> 1. New notes (MDI children) don't show up immediately (and I *am*
> doing a #create, at least I think I am)
>
> To reproduce:
> a. Go into the tree, expand the "Work stuff" branch
> b. Click on the "Interesting work" topic
> c. Hit the "New note" button
> d. Give it any title when prompted
> e. Notice that an empty note does NOT appear on the right. Why??
When you hit the "New note" button, the callback is MyMain#new_note().
The new_note() method calls make_note(title). The make_note() method
calls make_note_window(), which returns a reference to an FXMDIChild
window. Since there's no call to FXMDIChild#create() in
make_note_window() itself, and since you don't call create() on the
FXMDIChild returned by make_note_window(), you've got yourself a
non-created window.
Another problem (possibly tied in to that) was that the new MDI child
window was constructed with the dimensions (w=0, h=0). I sort of had
trouble following how and when this was supposed to get resized, so I
made a change that sort-of works. It's probably best to just diff the
attached version of tycho.rb (which is modified) against the 0.0.7
version you sent.
> 2. Also: Clicking around in the tree gives me errors like
> FXRbGetRubyObj(this=0x08eff288) returns non-Qnil
> over and over -- once per click maybe? What's wrong here?
OK. Haven't had a chance to debug this yet, but will do that next. Just
figured you'd like to have the first bit in hand to proceed. |