Patch to the notebook example to remove the call to the deprecated NotebookSizer. It appears to work just fine without the sizer. Roy _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Patch to the notebook example to remove the call to the deprecated NotebookSizer. It appears to work just fine without the sizer. Roy -------------- next part -------------- --- wxruby2_old/samples/bigdemo/wxNotebook.rbw 2005-09-06 10:14:04.000000000 -0400 +++ wxruby2/samples/bigdemo/wxNotebook.rbw 2005-09-11 23:40:17.211260800 -0400 @@ -26,8 +26,6 @@ load "GridSimple.rbw" #load "wxListCtrl.rbw" - Wx::NotebookSizer.new(self) - # Show how to put an image on one of the notebook tabs, # first make the image list: il = Wx::ImageList.new(16,16)
Roy Sutton wrote:> Patch to the notebook example to remove the call to the deprecated > NotebookSizer. It appears to work just fine without the sizer.Applied. Doesn''t quite work for me. All the tabs appear to work except for the "Scroll" one, which crashes without changing the appearance of the tab. I probably need to figure out why I''m ending up in this loopy outputting situation instead of just a clean stacktrace and exit. I get about 30 lines like this: addr2line: ''wxruby'': No such file before the dialog comes up offering to close the app. Turns out it''s a wx dialog. Here''s the error in this case: src/gtk/colour.cpp(200): assert "wxAssertFailure" failed: wxColour: couldn''t find colour Kevin
Interesting. I don''t have this problem. The scroll problem is the same problem you''re having with the MDI, as they share the same file. This is also used for the scroll window sample. Using that one to diagnose your problems is probably best since it''s the simplest use of that code. Kevin Smith wrote:> Roy Sutton wrote: >> Patch to the notebook example to remove the call to the deprecated >> NotebookSizer. It appears to work just fine without the sizer. > > Applied. > > Doesn''t quite work for me. All the tabs appear to work except for the > "Scroll" one, which crashes without changing the appearance of the tab. > > I probably need to figure out why I''m ending up in this loopy > outputting situation instead of just a clean stacktrace and exit. I > get about 30 lines like this: > > addr2line: ''wxruby'': No such file > > before the dialog comes up offering to close the app. Turns out it''s a > wx dialog. Here''s the error in this case: > > src/gtk/colour.cpp(200): assert "wxAssertFailure" failed: wxColour: > couldn''t find colour > > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >
Roy Sutton wrote:> Interesting. I don''t have this problem. The scroll problem is the same > problem you''re having with the MDI, as they share the same file. This > is also used for the scroll window sample. Using that one to diagnose > your problems is probably best since it''s the simplest use of that code.Thanks for the tip. The problem was our request to create a pen with a colour of "greem" instead of "green". The scrolled window now comes up for me. If I click in it (to draw a line), it segfaults. But at least it''s probably working as well for me as it did for you. I wonder why greem worked on your system. Kevin
I don''t know the answer to why it doesn''t crash on Windows. I do know about the crash when you click in it. I have a pretty long list of things to tackle still. I''m feeling pretty good about this so far, though. I don''t think I sent in the patch to make the menu sample work yet. I had to comment out the call to set_bitmap in there. set_bitmap is perfectly acceptable on Windows and GTK+ but it won''t work elsewhere. Do we want to add a conditional both to the demo source and to header files so people who can use it will have access to it? Roy Kevin Smith wrote:> Roy Sutton wrote: >> Interesting. I don''t have this problem. The scroll problem is the >> same problem you''re having with the MDI, as they share the same >> file. This is also used for the scroll window sample. Using that >> one to diagnose your problems is probably best since it''s the >> simplest use of that code. > > Thanks for the tip. The problem was our request to create a pen with a > colour of "greem" instead of "green". The scrolled window now comes up > for me. If I click in it (to draw a line), it segfaults. But at least > it''s probably working as well for me as it did for you. > > I wonder why greem worked on your system. > > Kevin > _______________________________________________ > wxruby-users mailing list > wxruby-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/wxruby-users > > >
Roy Sutton wrote:> I don''t know the answer to why it doesn''t crash on Windows. I do know > about the crash when you click in it. I have a pretty long list of > things to tackle still. I''m feeling pretty good about this so far, though.Definitely. All your work on bigdemo is really great.> I don''t think I sent in the patch to make the menu sample work yet. I > had to comment out the call to set_bitmap in there. set_bitmap is > perfectly acceptable on Windows and GTK+ but it won''t work elsewhere. > Do we want to add a conditional both to the demo source and to header > files so people who can use it will have access to it?That sounds like the best approach to me. Thanks, Kevin