This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

Dockingpack + OpenGL/DirectX ?

edited April 2012 in LMD IDE-Tools

Hello,

do you think an OpenGL/DirectX TPanel descendant will work in the docking site?

I tried a simple TPaintBox (OnPaint event on canvas) and it did not work.

May the styled painting mess it up?

Thank you for your answer  (and it's a great docking library).

Comments

  • ok, I've just made a working opengl panel, 

    you only have to disable switching to floating for it, or take care of the changed DC (I guess that gets updated with floating).


  • Yes, the handle change if you dock or undock.
  • Hi,

    VCL controls re-creates they handles on Parent change. There are some hande creation/re-creation related methodd: CreateParams, CreateHandle, CreateWnd, DestroyHandle, DestroyWnd, RecreateHandle, ect... Some of them are virtual. You should be familar with them, when writing your TPanel descendant.

    This way it should work. Btw, this is not only DockingPack related issue. Generally, to call your component correct, you should implement handle re-creation properly.
Sign In or Register to comment.