Howdy, Stranger!

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

In this Discussion

How to test whether a floating panel is visible?

edited September 2014 in LMD-Tools Vote Up0Vote Down
I want to iterate over all of the panels on a form and determine whether they are visible. I have figureddocking out how to do this for docked panels:
  For Apanel := 0 to MainForm.LMDDockSite1.PanelCount - 1 Do
  begin
    If Not MainForm.LMDDockSite1.Panels[Apanel].PanelVisible Then
    begin

But where are the floating panels stored and how do I test whether they are visible?

Comments

  • 2 Comments sorted by Votes Date Added
  • Hi,

    There no place where these a full list of panels are stored. You can create youw own list, if you create panels yourself at run-time, or just iterate the parent Form.Components collection, since all auto-created panels (which you placed on the site at design-time) will be there.

    For testing, whether the panel is visible you can use PanelVisible property.
Sign In or Register to comment.