Skip to content
Delphi Firemonkey Form Docking for Windows and Mobile Apps
Pascal
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media
LICENSE
README.md
customer.fmx
customer.pas
main.fmx
main.pas
sales.fmx
sales.pas
tabdockingexample.dpr
tabdockingexample.dproj

README.md

Background

When working with mobile applications, trying to place all your code on one form can become cumbersome. So to overcome this you will need to create forms and dock forms onto a main form permanently or temporarily. If you believed that FMX form Docking is the same as VCL, then this blog will help you to make the new implementation easier because the FMX method is a lot different from the VCL method.

IDE

Tokyo 10.2 used, this should be backwards compatible to Post XE4 versions.

Scope

Dock different forms to a specific tab-item in the tab-control of a form and free them when required.

Requirements

Standard FMX Library.

Difficulty level - Low.

Method

How does it work?

  • The Form to be ‘Docked to’ must have a Tlayout or Tpanel or similar which becomes the Parent object to be docked to.

  • The Form to be ‘Dockedfrom’ must have a Tlayout or Tpanel or similar which becomes the Child of the Parent.

  • All the children ( Tedits, Tbuttons,Tlabels, etc) of the ‘DockedFrom’ form become the children of the Parent and are added in the order in which they were created at design time.

So if you will be reusing the ‘Dockedto’ as the parent to add and remove different forms...

Read my blog to get all the information on how to impliment docking:- Delphi-FMX-form-docking

Happy Coding

You can’t perform that action at this time.