From: Takaaki T. <tt...@ja...> - 2001-09-01 14:47:24
|
At Sat, 1 Sep 2001 07:15:24 -0700 (PDT), > I'm not happy that FLTK uses the constructor signature to > decide between child and top-level windows. I didn't know this fact. > I've thought of many possibilities, but I don't really like > any of them. I think tmy favorite so far is: .. > Assume that any Window will be top-level. If someone wants > to create a child window, require them to insert the RBFL > constant Fltk::CHILDWINDOW as the first parameter to new. > So new would now take zero to six parameters. How about adding another singleton method something like `Window.toplevel', `Window.new2' or `Window.create' for creating the "top-level" window? -- Takaaki Tateishi <tt...@ja...> |