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.

Programatically Dock Docking Panels

edited September 2014 in LMD-Tools
I am new to docking and could use some help figuring out how to programatically dock panels together. For example, I would like to float several panels (I know how to float them) and then join them together into a set of floating tabs. Conversely, I would like to be able to take a set of floating tabs and dock them into the space zone in a tabbed arrangement. Could you tell me how to do this?

Thank you!

Comments

  • Hi,

    1) For docking panels you should use TLMDDockSite.DockControl method, which has additional Zone parameter. This parameter allow you to specify a zone (TLMDDockZone) on the site, relative to which your panel will be docked (LMD-DockPack demo shows the concept of site's zones tree).

    2) The panel class has Zone and Site properties, which provides access to current panel's zone and parent dock site correspondingly. 
    So, to make a group of two floating panels, you can: after making first panel floating you can access its (implictly created) parent site, and use it to dock another one panel into it.

Sign In or Register to comment.