gnope php gtk gui gnope.org  

Changing a windows content

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
srynoname



Joined: 13 Aug 2006
Posts: 9

PostPosted: Mon Aug 14, 2006 5:25 pm    Post subject: Changing a windows content Reply with quote

hello, i'm wondering which way is typically taken, to change the complete content (or better whats displayed) of a window, hbox, vbox...

lets say i have a simple mail program, when i start it, it shows my inbox etc. (lets call this "startpage")
when i click "write mail" this all shall be removed and a window for writing mails shall appear, therefore totally different content.

how do i do that in theory?
do i make one window called "start" for the startpage and one called "write" for writing mails, and when i click "write mail" the window "start" is hidden and "write" is shown? well, but how do i get them to the same place, or is this automatically done? are there better ways for this/normally other ways used?

thanks in advance!
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Mon Aug 14, 2006 9:32 pm    Post subject: Reply with quote

You either have 2 windows, e.g. a write-mail window which pops up when you click the write mail button.
Or you use a GtkNotebook and hide the tabs. This way you can independently design your pages and make another one active
Back to top
srynoname



Joined: 13 Aug 2006
Posts: 9

PostPosted: Tue Aug 15, 2006 4:36 pm    Post subject: Reply with quote

thanks for your reply, i finally used a vbox (or hbox) with 1 "field" where i put the whole content. when needed, i remove this box from the window container and add a new one, also makes no problems with a changing window position etc Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.