[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'LDockCtrl' (#lcl)

# TCustomLazControlDocker.CreateFormAndDockWithSplitter

CreateFormAndDockWithSplitter - add a splitter to Side and dock to it. Returns True if successful

## Declaration

Source position: ldockctrl.pas line 257

`protected function TCustomLazControlDocker.CreateFormAndDockWithSplitter(`
`Layout: TLazDockConfigNode;`
`Side: TAnchorKind`
`):Boolean;`

## Description

Add a splitter to Side and dock to it. For example:

    Side=akLeft
          --------+      -------------+
              ---+|      ---+#+------+|
               A ||       A |#|      ||
              ---+|      ---+#|      ||
              ====|  ->  ====#| Self ||
              ---+|      ---+#|      ||
               B ||       B |#|      ||
              ---+|      ---+#+------+|
          --------+      -------------+

If A has no parent, a TLazDockForm is created.

To get space for Self, either A,B are shrunk and/or the parent of A,B is enlarged (including the grand parents of A,B)

The latest version of this document can be found at lazarus-ccr.sourceforge.net.