From: Kevin S. <kev...@ya...> - 2001-09-01 14:05:34
|
I just committed a change to Window that allows this to work: ### require 'fltk' class MyWindow < Fltk::Window def initialize super(400, 200, 'Main Window Class') end end w = MyWindow.new w.show Fltk::run ### Now, the 'new' function always calls new Fl_Window(0,0), regardless of the args that were passed in. I have added a default 'initialize' method that actually uses the args to call size, resize, and/or label as needed. I have only changed this for Window, but I think we should make a similar change for Widget. Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |