[Gtk-sharp-list] Proposal: Default constructors for widgets
12 Mar 2003 20:59:35 +0000
One of the most remarkable things about System.Windows.Forms is that
most widgets have default constructors (ie. no parameters).
This probably helps cut down the learning curve of the toolkit. For
example, in situations when you know you need a VBox, but don't care
about making it homogeneous or giving it a default spacing, you could
just do VBox vb = new VBox (). It tends to be possible to adjusted these
options later using properties, anyway.
I propose to add overloaded default constructors for widgets where the
constructor parameters can also be modified by properties, or where
non-default values are rarely used. The original constructors would
remain for compatibility with the Gtk+ API.
This will also help simplify the work needed to make a VS.NET-style
forms editor for Gtk# (something that's now being worked on).