GUI Plugin Window visible?

is there a way to check whether a UI plugin window is visible (open) or not ? i’d like to stop the UI drawing when its minimized (rightclick on node)

Since your plugin should inherit from UserControl, you can normally check the Visible property (which should be false in case your plugin is hidden)

Another option is to import IPluginHost and check at window level

    public bool IsVisible
    {
        get
        {
            INode node = (INode)this.FHost; //IPluginHost imported from constructor or as property

            if (node.Window != null)
            {
                return node.Window.IsVisible();
            }
            else
            {
                return false;
            }
        }
    }

works like a charm

cheerio vux

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.