From: Kevin S. <kev...@ya...> - 2001-09-01 01:18:10
|
I would like to allow the following constructors for every widget: new() new(label) new(width,height) new(width,height,label) new(x,y,width,height) new(x,y,width,height,label) The defaults for x, y, width, and height would be zero. They can always be changed later with calls to size, position, and resize. By the way, resize is virtual. I think that's fine with our system, but it is one of the few virtual methods so I wanted to point it out. Note also that FLTK's Fl_Window behaves differently depending on whether you construct it with x and y or without. Child windows get x and y, but to create a main window you only pass width and height. This affects 'parent', 'visible', and perhaps other aspects. Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |