| View previous topic :: View next topic |
| Author |
Message |
srynoname
Joined: 13 Aug 2006 Posts: 9
|
Posted: Mon Aug 14, 2006 5:25 pm Post subject: Changing a windows content |
|
|
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
|
Posted: Mon Aug 14, 2006 9:32 pm Post subject: |
|
|
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
|
Posted: Tue Aug 15, 2006 4:36 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|