[gtkada] Notebook question

manuel.op.de.coul at eon-benelux.com manuel.op.de.coul at eon-benelux.com
Tue Oct 8 11:03:59 CEST 2002


Bobby Bryant wrote:

>I have not been modifying the page children directly.  Instead, I use
>Prepend_Page, Insert_Page, or Append_Page to add new pages with their
>own children.  If the new page is to replace an old one I just use
>Remove_Page and then Insert_Page for the substitution.

Thanks for the help. I was trying to stick a GtkText in the
notebook page that is visible, catching "switch_page" events to
move it, but this was too difficult. It seemed the Notebook
wasn't designed to be used like this. When there's no widget
in a page, the tab disappears, even if there's a label on it.
Another annoying thing was that Set_Page can't be used if
the notebook isn't shown yet.
So yes I could use a container perhaps, but it was simpler to
create an array of different GtkTexts for the pages.
I thought I could save some resources this way, but if one
has to maintain dummy widgets to keep the tabs visible, it's
no use.

Manuel





More information about the gtkada mailing list