Re: Setting the default page to a Notebook at application start time.
- From: Joaquim Duran <joaquinduran adtelecom es>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Setting the default page to a Notebook at application start time.
- Date: Thu, 12 Jul 2007 18:35:49 +0200
En/na Murray Cumming ha escrit:
On Thu, 2007-07-12 at 08:15 -0500, Robert Caryl wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You may want to share your demo program source with us.
Joaquim Duran wrote:
Dear all,
I'm interested to show several widgets (one at a time) at the same
place
on the screen. To do that, I've decided to use a Notebook container
(each widget is set in a page) and setting 'set_show_tabs' to
false.
Also, I'm interested in show the same widget that the user was
working
when he closed the application.
I've create a demo program: inside a VBox container I've created a
Notebook object, including others widgets. From the constructor of
the
VBox derived class, 3 pages are added to the notebook. After that,
the
function member 'set_active_page(1)' is called.
When the application starts, always, the page number 0 is shown to
the user.
Is there any way to implement the described behavior? Doesn't
Notebook
till it has been drawn to the screen?
I notice that the GtkNotebook documetnation has been updated:
http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html#gtk-notebook-set-current-page
"
Note that due to historical reasons, GtkNotebook refuses to switch to a
page unless the child widget is visible. Therefore, it is recommended to
show child widgets before adding them to a notebook.
"
Maybe this is relevant?
Ok, I see.
Joaquim Duran
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]