Page 1 of 1

Continuous drawing of a GLCanvas

Posted: Tue Jul 19, 2005 10:35 am
by Sami Hamlaoui
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.