[Gtk-sharp-list] Paned

Ronaldo Nascimento sgtnasty at gmail.com
Tue Jul 21 14:08:33 EDT 2009


I am to dynamically provide a widget for the 2nd child of a HPaned
widget. I am using the initial Add2 method, then later based on user
interaction modify the child object with another one but I am not
seeing the change in the interface at runtime.

{
    this.welcome_html = new HTML();
    ...
    this.hpaned3.Add2(this.welcome_html);
    this.ShowAll();
}
// this works at the MainWindow constructor, the HTML widget shows
properly in the 2nd child area of the HPaned object.

// then later
{
    MyWidget w = new MyWidget();
    ...
    this.hpaned3.Add2(w);
    this.ShowAll();
}
// however the initial HTML widget never gets replaced by the MyWidget object.

Any help would be greatly appreciated.


More information about the Gtk-sharp-list mailing list