Continuous drawing of a GLCanvas

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
Sami Hamlaoui
In need of some credit
In need of some credit
Posts: 6
Joined: Mon Jul 11, 2005 1:35 pm

Continuous drawing of a GLCanvas

Post by Sami Hamlaoui » Tue Jul 19, 2005 10:35 am

At the moment I am redrawing my GLCanvas in the following manner:

void Viewport::OnIdle (wxIdleEvent &event)
{
Refresh ();
}

This is all well and good, but when I resize the window, bring up a menu, etc, it stops recieving OnIdle events, therefor no drawing occurs. Is there any way to keep the canvas rendering regardless of what is happening to the window? I've uploaded a sample app here so you can see what I mean. Bring up a menu or resize the window and it freezes until the mouse button is released.

Thanks

Post Reply