Using TLMDDockSite Control |
Top Previous Next |
•The Panels and PanelCount properties represent the collection of dock panels that is placed on the site. Note that this is not always equals to DockClientCount and DockClients properties, because of the ability of docking standard Delphi (not a TLMDDockPanel) clients. If one or more of such clients has been docked into the site, then corresponding count of hosting panels has been created. All these panels will be present in the Panels collection, but will not be in the DockClients collection, because these panels are not true dock clients. Equally, docked standard Delphi (not a TLMDDockPanel) clients will be present in the DockClients collection, but will not be included into the Panels collection, because they are not dock panels. •The RootZone property – is the entry point into the site’s zone tree. Zone tree is used as a descriptor of the site structure. It describes how concretely clients are docked in the site. Think about a zone as a description of some area in the docking site. The RootZone always exists, even in empty site; however, all other child zones are dynamically created as a result of docking process. TLMDDockSite supports the following kinds of zones: horizontal split, vertical split, tabs, and simple panel zone. The simple panel zone denotes the zone that contain only dock panel but no child zones. Zones of all other kinds does not contain dock panels directly, instead they contain child zones. •The DockControl method can be used instead of standard Delphi ManualDock method to dock clients into TLMDDockSite. Using DockControl method allows to dock clients relatively to any existing zone which is more precise, then specifying DropControl parameter in ManualDock method. •The FindPanelByClient and FindZoneByClient methods allow searching for the panel or zone that corresponds to the docked client. Note that non-TLMDDockPanel clients a host-panel is dynamically created as a part of docking process. •The GetHitTest method allows querying information about what is shown in the site at specified coordinates point. •The OnDockOver and OnDockDrop events replace analogous Vcl events by events with enhanced parameter list, including zone parameter. |