This forum is temporaily read-only. All existing discussions remain available for reference. For new questions, bug reports or support requests, please contact us at mail@lmdsupport.com.

How can I control how two docking panels are positioned with the DockSite?

At present the dock panels stack up at one end or the other.  I would like to be able to position them e.g. equivalent to moving the splitter bar so that all panels initially have an equal fraction of the docksite height.  I tried setting the height of the individual panels but that didn't do it I presume because one of the panels is aligned to alClient but there is no way of knowing which panel that is.

Comments

  • Layout is controlled via dock zone tree, which can be accessed using Site.RootZone. Zone class provides Width and Height properties, which can be set to values you need (some of values can be ignored, e.g. Height will be ignored is panels are aligned horizontally, only Width will matter in this case).
Sign In or Register to comment.