wxGlCanvas in wxNotebook.
philparsonage at hotmail.com
philparsonage at hotmail.com
Mon Apr 2 01:55:27 PDT 2007
Hi,
I have a control which consists of a wxNotebook with a wxGLCanvas
inside each page. I add the first page during application startup, and
that works fine, but I then have a menu command to add new pages (and
therefore new canvasses). Adding a new wxGLCanvas works fine on MSW,
however on GTK (on Ubuntu) I'm getting an assertion:
(Compositor:4999): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion
`!GTK_WIDGET_REALIZED (widget)' failed
I believe this is coming from the constructor of the wxGLCanvas - I've
not even called AddPage on my notebook yet.
This doesn't happen if I insert a wxPanel into the Notebook instead of
a wxGLCanvas. It still happens if I put the wxGLCanvas into a wxPanel
and try to insert that. It also happens if I use the notebook sample
in the wxWidgets distribution and make the AddPage call add a
wxGLCanvas instead of the panel with a button on it. Does anyone have
any ideas for what's happening? A workaround would be great, but I
have a feeling it's a bug ;-) I'm using 2.8.2 currently.
Regards,
Phil
More information about the wx-users
mailing list