GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Wed Aug 20, 2014 6:49 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How do you make changeable GUI's in Gtk+?
PostPosted: Sun May 26, 2013 12:02 am 
Offline

Joined: Sat May 25, 2013 1:35 am
Posts: 1
To keep the scope simple, let's focus on gtk.Paned (I'm using GtkD btw). It takes two children. Say I start out with two children loaded and two panes are displayed in my application. When the user right-clicks on a pane and selects 'pop out to window', I would like to remove the child pane from it's Paned parent and refresh the gui to reflect this change. Then later I'd like to add the child back on to the Paned widget. Is this possible in Gtk+ and how is it done?

Thank you! :D


Top
 Profile  
 
 Post subject: Re: How do you make changeable GUI's in Gtk+?
PostPosted: Sun May 26, 2013 10:15 am 
Offline

Joined: Mon Jan 07, 2013 7:35 am
Posts: 3
Hello,

Firstly, I suggest you hide/show simply the widget:
Code:
GtkWidget* child1 = gtk_paned_get_child1(GTK_PANED(myPaned));
gtk_widget_hide(child1);
...
gtk_widget_show(child1);



If it does not works, try by remove/add the widget:
gtk_container_remove(GtkContainer *container, GtkWidget *widget);
gtk_paned_add1(GtkPaned *paned, GtkWidget *child, gboolean resize, gboolean shrink);


Hoping this can help you,

Best regard


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group