Lazarus

Programming => Graphics and Multimedia => OpenGL => Topic started by: JasonLugg on April 23, 2012, 02:21:01 pm

Title: OpenGLContext on a tab page
Post by: JasonLugg on April 23, 2012, 02:21:01 pm
Hi All

Thanks in advance for any assistance!!!

Can someone tell me how to create an openglcontext on a tab page. I can create one that has its own form but I need one on a tab page so that it is only visible when the user selects that tab?

Is it possible? if so how?

Thanks
Title: Re: OpenGLContext on a tab page
Post by: User137 on April 23, 2012, 05:02:46 pm
TOpenGLContext is same kind of visual component that TButton is. If you can create TButton on a tab page, then you can make opengl context too. But i'm not sure how well it handles hardware accelerated graphics being hidden/shown in a tab.
Title: Re: OpenGLContext on a tab page
Post by: Leledumbo on April 24, 2012, 04:15:31 am
Drop a TPageControl, add a page, drop TOpenGLContext on that page.
TinyPortal © 2005-2018