Difference between revisions of "Anchor Docking"

From Free Pascal wiki
Jump to navigationJump to search
Line 8: Line 8:
 
===Features===
 
===Features===
  
*Using the LCL's anchors almost any layout is possible. It is for example not limited to the strict top/bottom/left/right order of docking managers using the Align property.
+
*By using the LCL's anchors almost any layout is possible. It is for example not limited to the strict top/bottom/left/right order of the Align property.
 
*It does not use hidden panels. What you see is how it is structured.
 
*It does not use hidden panels. What you see is how it is structured.
 +
*TSplitter are automatically inserted between docked forms
 +
*Page docking. Forms can be docked not only left/right/above/below, but in pages too. A TPageControl is automatically created. A page can contain arbitrary docked forms too, including paged docked forms, allowing nested pages.
 +
*Easy use: Just drop a TLazControlDocker onto the form that should be dockable, give it an unique name and connect it to the TLazDockingManager.

Revision as of 17:48, 30 December 2007

About docking in general see Docking.

Anchor Docking with TLazDockingManager

The TLazDockingManager is part of the LCL and can be found unit LDockCtrl. It is not yet complete and therefore not yet part of the IDE component palette. An example can be found in lazarus/examples/anchordocking/docking1.lpi.

Features

  • By using the LCL's anchors almost any layout is possible. It is for example not limited to the strict top/bottom/left/right order of the Align property.
  • It does not use hidden panels. What you see is how it is structured.
  • TSplitter are automatically inserted between docked forms
  • Page docking. Forms can be docked not only left/right/above/below, but in pages too. A TPageControl is automatically created. A page can contain arbitrary docked forms too, including paged docked forms, allowing nested pages.
  • Easy use: Just drop a TLazControlDocker onto the form that should be dockable, give it an unique name and connect it to the TLazDockingManager.