[Gtk-sharp-list] The .Label property of controls like the
Sat, 01 Nov 2003 17:28:35 -0600
On Wed, 2003-10-29 at 03:01, Philip Van Hoof wrote:
> Because in .NET every visible control seems to have a .Text property
> which is used to set the contents main-label of that control, would it
> be a good idea if I provided a patch that adds this property to controls
> like the Gtk.Button ?
I'm not terribly excited about this. I think it's cleaner to obtain the
child label control and set the text on it. Besides, changing the label
on a button is a good way to confuse your users, so it *should* be hard
to do. :)
> I am also thinking about adding a Databind ()-method and a DataSource
> property to widgets like the Gtk.Combo and Gtk.TreeView.
Cool, but this might be a tiny bit premature. I am currently working on
a NodeStore for treeviews that is more C# friendly. It might be better
to add the data binding to that. And Gtk.Combo is a "dead" widget. As
soon as packages for the upcoming Gtk+-2.4 are widely available, we will
be upgrading to it, and the new sexy Gtk.ComboBox.
So if this looks like it is going to be a lot of work to do this data
binding it might be good to hold off a little for the new API.
Mike Kestner <email@example.com>