wxSplitterWindow and wxGLCanvas resize in GTK

philparsonage at hotmail.com philparsonage at hotmail.com
Sat Dec 2 06:43:34 PST 2006


Essentially, on resizing a wxGLCanvas by using a wxSplitterWindow, the
new part of the background is drawn in the background colour of my
wxGLCanvas, rather than being redrawn by the wxGLCanvas itself. It's
like the glViewport has been set wrong, even though in the OnSize of my
wxGLCanvas I set the glViewport to be the correct size.

This is fixed if I call Update() (and thererfore invalidate the
background) in my OnSize, but even then, I'm getting flashing as I
resize the entire application window. I don't see this behaviour in
MSW, only on GTK.

If you replace the splitter sample with the code I posted above, (and
add some gl libraries into the makefile) it should build, and try
resizing the splitter window and the application. You should see what I
mean then. The example I've posted above isn't that long, it's only
turned into quoting by one line!

Thanks for your help,
Phil

"Robert Roebling" wrote:
> > And if it's any help, I'm using 2.6.3, what are the chances of this
> > being fixed in 2.8.*?
>
> Sorry, I didn't pay attention to this so far. What is the problem again?
> Do you have an easy way to reproduce the problem, such as a
> mini sample?
>
>   Robert
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org







More information about the wx-users mailing list