[Gtk-sharp-list] The .Label property of controls like the
Sun, 02 Nov 2003 19:44:07 -0600
On Sun, 2003-11-02 at 13:19, Philip Van Hoof wrote:
> Okay, in that case I am not going to create such a patch. Still I belive
> that integration with the way of working in the .NET world should be
> considered at some point. Perhaps using wrapper classes that actually
> make stuff look more like the nice C#-way of doing things...
I think you mean to say "the nice System.Windows.Forms way of doing
things..." and Gtk# differs from SWF in several fundamental ways.
> Label l = b.Label;
> l.Text = "test";
> // and/or
> b.Text = "test";
Already said that I think it's dubious to set a button label string
after construction. The above customization is dubious also in that
there is no guarantee that a button has a Label. Button is just a bin
container with built-in click handling.
> Okay, in that case waiting seems to be the best option :). But I am
> already looking forward to do things _like_
Yeah, there's a wishlist bug already open for data binding to Gtk#
widgets. Your help on this at a more appropriate point from an API
stability perspective will be much appreciated. This may be a post-1.0
Gtk# feature at this point though.
Mike Kestner <firstname.lastname@example.org>