<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Statusbar not being added in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/statusbar-not-being-added/m-p/7787517#M27287</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have some code that adds to the statusbar, but nothing seems to display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  public void SetPane()
            {
            Document doc = AcApp.DocumentManager.MdiActiveDocument;
            if (doc != null)
                {
                Pane pane = getPane();
                if (pane == null)
                    {
                    pane = new Pane();
                    doc.GetStatusBar().Panes.Add(pane);
                    }

                pane.Enabled = true;

                pane.Style = PaneStyles.Normal;
                pane.Text = string.Format("Client: TEST");
                pane.ToolTipText = "Displays the current client standards";
                pane.Visible = true;
                }
            }
            

        private Pane getPane()
            {
            Pane p = null;
            Document doc = AcApp.DocumentManager.MdiActiveDocument;
            foreach(Pane pane in doc.GetStatusBar().Panes)
                {
                if(pane.Text.Contains("Client:"))
                    {
                    p = pane;
                    break;
                    }
                }
            return p;
            }&lt;/PRE&gt;
&lt;P&gt;I have a snapshot of the statusbar and it looks like is has added something, but not displaying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something that I have missed?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brent&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2018 01:57:17 GMT</pubDate>
    <dc:creator>BrentBurgess1980</dc:creator>
    <dc:date>2018-02-19T01:57:17Z</dc:date>
    <item>
      <title>Statusbar not being added</title>
      <link>https://forums.autodesk.com/t5/net-forum/statusbar-not-being-added/m-p/7787517#M27287</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have some code that adds to the statusbar, but nothing seems to display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  public void SetPane()
            {
            Document doc = AcApp.DocumentManager.MdiActiveDocument;
            if (doc != null)
                {
                Pane pane = getPane();
                if (pane == null)
                    {
                    pane = new Pane();
                    doc.GetStatusBar().Panes.Add(pane);
                    }

                pane.Enabled = true;

                pane.Style = PaneStyles.Normal;
                pane.Text = string.Format("Client: TEST");
                pane.ToolTipText = "Displays the current client standards";
                pane.Visible = true;
                }
            }
            

        private Pane getPane()
            {
            Pane p = null;
            Document doc = AcApp.DocumentManager.MdiActiveDocument;
            foreach(Pane pane in doc.GetStatusBar().Panes)
                {
                if(pane.Text.Contains("Client:"))
                    {
                    p = pane;
                    break;
                    }
                }
            return p;
            }&lt;/PRE&gt;
&lt;P&gt;I have a snapshot of the statusbar and it looks like is has added something, but not displaying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something that I have missed?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Brent&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 01:57:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/statusbar-not-being-added/m-p/7787517#M27287</guid>
      <dc:creator>BrentBurgess1980</dc:creator>
      <dc:date>2018-02-19T01:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Statusbar not being added</title>
      <link>https://forums.autodesk.com/t5/net-forum/statusbar-not-being-added/m-p/7790611#M27288</link>
      <description>&lt;P&gt;Does&amp;nbsp;changing the way the status bar is added as below help solve your issue ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Autodesk.AutoCAD.ApplicationServices.Application.StatusBar.Panes.Add(pane);&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 06:08:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/statusbar-not-being-added/m-p/7790611#M27288</guid>
      <dc:creator>deepak.a.s.nadig</dc:creator>
      <dc:date>2018-02-20T06:08:59Z</dc:date>
    </item>
  </channel>
</rss>

