I'm just starting to use the docking functionality in Delphi V and am having some problems. What I want to achieve is a form (possibly MDI) which has on it several components. A Treeview, a listview and a panel containing buttons. I want each of the components to have it's own title bar (or a point by which it can be dragged) when docked.
Currently I have the components on the form with their DragKind set to dkDock and their DragMode set to dmAutomatic. Each component is docked to a TPanel with it DockSite set to TRUE. The problems are these:
1) When the application starts, the components are docked to their TPanels, but no title/drag bar is visible. It is only after the component has been dragged away from the TPanel that the title bar appears. Once re-docked, the title bar is still there.
2) As DragMode is set to dmAutomatic, I cannot click in the components as everytime I do, dragging begins.
What am I doing wrong? Does anybody have an example of something similar?
I'm sure that I will have more questions, but the answers to these should get me started.