Included are three patches to make the mdi demo work properly: main.rbw: Call init_all_image_handlers (Is there any reason we shouldn''t just do this for people? Why make them call this? Is there a downside to initializing image handlers?) wxScrolledWindow.rbw: Uncommented call to draw_spline wxDC.h: Added another prototype of draw_spline so draw_spline will work in the demo _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
Roy Sutton wrote:> Included are three patches to make the mdi demo work properly:Applied.> main.rbw: Call init_all_image_handlers (Is there any reason we > shouldn''t just do this for people? Why make them call this? Is there a > downside to initializing image handlers?)Hm. I''m not certain they would all be available on all platforms. Might be some penalty in speed or memory usage. I''ll add it to the TODO list as a question. This patch didn''t apply cleanly. Not sure why.> wxScrolledWindow.rbw: Uncommented call to draw_splineThis one did apply cleanly.> wxDC.h: Added another prototype of draw_spline so draw_spline will work > in the demoCool. The MDI sample doesn''t quite actually work for me yet. I can click on the MDI tree item, and then on the MDI button. A second window pops up. If I hit File/New Window, the app goes into its typical diagnostic/crash loop where it prints a bunch of uninteresting messages to the screen, and then pops up a dialog offering to kill the app (which may be coming from Gnome). Kevin
Reasonably Related Threads
- update on samples
- [976] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Remove deprecated begin_drawing and end_drawing calls
- [993] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Use ClientDC via Window#paint object
- [978] branches/wxruby2/wxwidgets_282/samples/bigdemo/wxScrolledWindow.rbw: Fix crazy crashers on MSW; fix scrolling/drawing position; safe path to bitmap
- [697] trunk/wxruby2/samples/bigdemo: Fixed loading of other files so the sample can be run from another directory