constructor params
[email protected] (Robert Roebling)
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
Hello again, I am amazed how fast progress is on wx.NET and I hope you don't mind my further feedback: I wonder about the parameters in the constructors of the various control classes (I didn't look at the other classes to closely yet). Sadly, C# doesn't seem to have default arguments, so we need several constuctors for each control. The question will, of course, be which constructors seem reasonable. There has to be a constructor with all parameters (i.e. including style, validator and name). I think, there also should be a shorter form that doesn't include validators and the name as these are rarely used but which does include the style, which is often used. Such a constructor is not available for any control right now, I think it should be added like this new Button( this, -1, "OK", wxDefaultPosition, new Size(100,-1), wxBU_DEFAULT ); Once again, this is also available in all other bindings. What do you think? Robert -- Robert Roebling, MD <[email protected]> ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en