[Gtk-sharp-list] Proposal: Default constructors for widgets
Charles Iliya Krempeaux
13 Mar 2003 15:39:04 -0800
I'm for it.
(I await your Patch :-) )
On Wed, 2003-03-12 at 12:59, fd wrote:
> 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).
> Gtk-sharp-list maillist - Gtkfirstname.lastname@example.org
Charles Iliya Krempeaux, BSc
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/