Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

List of all TLMDDockPanel

edited July 2015 in LMD-Tools Vote Up0Vote Down
What is the best way to track all TLMDDockPanel objects created during life time of an application? There is TLMDDockSite.Panels[], but once a panel is floating, it's part of a separate TLMDDockSite in the floating window.

Do I have to create my own list or is there another way to do it?


  • 2 Comments sorted by Votes Date Added
  • Posts: 0 Accepted Answer Vote Up0Vote Down

    You can use your own list. Or, if you'll specify some owner, like the main form, as a panel's constructor parameter, you can then interate all forms child component:

    for i := 0 to MyForm.ComponentCount - 1 do
      if MyForm.Components[i] is TLMDDockPanel then
        // Do something...

    LMD Innovative.

Sign In or Register to comment.