Paned

View: New views
3 Messages — Rating Filter:   Alert me  

Paned

by SgtNasty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Paned

by Andy Selvig :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Remember to remove welcome_html before trying to add anything else to the Paned. There should be a warning printed to the output if you don't.

On Tue, Jul 21, 2009 at 1:08 PM, Ronaldo Nascimento <sgtnasty@...> wrote:
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.
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list


_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Re: Paned

by SgtNasty :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Awesome that worked!
Thanks so much

On Tue, Jul 21, 2009 at 2:12 PM, Andy Selvig<ajselvig@...> wrote:

> Remember to remove welcome_html before trying to add anything else to the
> Paned. There should be a warning printed to the output if you don't.
>
> On Tue, Jul 21, 2009 at 1:08 PM, Ronaldo Nascimento <sgtnasty@...>
> wrote:
>>
>> 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.
>> _______________________________________________
>> Gtk-sharp-list maillist  -  Gtk-sharp-list@...
>> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>
>
_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@...
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list