Author Topic: OpenGLContext on a tab page  (Read 4649 times)


  • Jr. Member
  • **
  • Posts: 67
OpenGLContext on a tab page
« 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?



  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: OpenGLContext on a tab page
« Reply #1 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.


  • Hero Member
  • *****
  • Posts: 8494
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: OpenGLContext on a tab page
« Reply #2 on: April 24, 2012, 04:15:31 am »
Drop a TPageControl, add a page, drop TOpenGLContext on that page.


TinyPortal © 2005-2018