How to prevent TPanel (used for context) from repaiting while resizing? lazarus / 70-OpenGL ---------------------------------------------------------------------- Pascal · 2017-07-03 11:55 I have a form with a panel which is used for a GL-Context (dglOpenGL). The context is refreshed every 40 ms by a thread. If i now resize the form, the GL-Context is hidden by the repainted Panel/Window. How can i prevent this behaviour, so that the context is visible while resizing. Using TOpenGLControl is not an option here as this doesn't seem to work with rendering in threads. ---------------------------------------------------------------------- Pascal · 2017-07-03 12:03 Quote from: Pascal on July 03, 2017, 01:55:08 pmUsing TOpenGLControl is not an option here as this doesn't seem to work with rendering in threads. Well, in fact this was the solution! I used TOpenGLControl to create my context on. The context created by TOpenGLControl will not be used. ---------------------------------------------------------------------- Thaddy · 2017-07-03 14:29 Tcontrol.beginupdate and Tcontrol.endupdate is designed for that.