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.

List of all TLMDDockPanel

chkchk
edited July 2015 in LMD-Tools
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?

Comments

  • Hi,

    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
      begin
        // Do something...
      end;

    Eugene,
    LMD Innovative.

Sign In or Register to comment.