Search code examples
delphifiremonkey

Firemonkey and dockable forms


Is it possible to have dockable forms in FireMonkey, as I have inspected the forms properties, and there is no such property to do that. Is there any workaround to accomplish that?


Solution

  • There's nothing built in, as far as I know but it shouldn't be too difficult to add in yourself. Just bear in mind that any form can parent any control on another form:

    On the child form, add any controls inside a container (e.g. a TLayout). Create the child form. Set the Parent property of the TLayout (etc.) to the parent form (or, more probably a container on the parent form so you can set the child TLayout's alignment to alClient).

    If you want to show the placement during a drag operation, experiment with the various effec ts included.