Search code examples
delphidelphi-2010docking

Any elegant way to remove flicker for dockable controls?


I want to add docking capabilities in an application, haven't had a need for that, now I do, but whenever clicking and dragging a panel towards or from a "docksite", the window rectangle is painted ugly(flickering) on the desktop canvas.

So, my question is:

  • any simple and elegant way to overcome this by overriding some method?

Solution

  • There's a brilliant Sample Project available on the Official RAD Studio Demos SVN Repository. This demo does everything you're trying to do with regards to tidy docking without flickering. It perfectly recreates the way Windows can be docked in the RAD Studio IDE itself.