control '' has no parent window

I have created a TGLPanel which does openGL drawing on a panel face. when I tried to place the control on a new project I got the following error. “control ‘’ has no parent window”

I set up my DC and RC in the constructor and I think that’s where the problem is. I want it to be there so future derived classes can display stuff at design time

Anyone have any ideas … please help

It seems pretty clear to me…

When you create the control you don’t specify the parent of your control. The default creator for your panel either doesn’t have the parent proprety or you provide NULL insted the pointer to the parent.

NewROmancer

I never had to explicitly set the parent property of any of my other controls. is there something special about openGL which needs the parent declared (maybe to access the Handle of the control?)

I did try that and it worked, thanks