Yes I did this, and it works well. Thanks for your reply!
But as I'd like to create a new component in Lazarus, which could resize dynamically depending on its container, I thought it'd be better to use a scrollbox. Maybe I am wrong?
So, the solution would be to put a TOpenGLControl and 2 scrollbars in a TPanel?
My question is then: how to set up the layout so that the relative positions of the scrollbars and TOpenGLControl is definitive, and resizing the TPanel keeps the scrollbars at the right position?
Sorry, this may be newbie questions!