Hiding all panels in designer leads to exception
Posted: Mon Jan 18, 2010 3:37 am
I hide all panels in designer using the following code:
I open the designer via StiReport.Design method. Even the message panel should not be visible a certain rest of it is visible on the bottom of the designer. In the lower left corner there is a very small dark gray dot on that rest of the message panel.
Here is a screen shot that shows this dark gray dot marked with a red rectangle:

When you move the mouse over that dark gray dot you receive the following exception:
"Bar.Items collection must contain at least one visible DockContainerItem object so auto-hide functionality can function properly."
This is the stack trace:
bei Stimulsoft.Controls.Win.DotNetBar.AutoHidePanel.SelectPanel(Int32 x, Int32 y)
bei Stimulsoft.Controls.Win.DotNetBar.AutoHidePanel.TimerTick(Object sender, EventArgs e)
bei System.Windows.Forms.Timer.OnTick(EventArgs e)
bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What do I have to do to hide this rest of the message panel that may cause the described exception?
I thank very much in advance for any help.
Yours
munich
Code: Select all
Stimulsoft.Report.Design.Panels.StiPropertiesPanelService propPanel = Stimulsoft.Report.Design.Panels.StiPropertiesPanelService.GetService();
propPanel.ServiceEnabled = false;
Stimulsoft.Report.Design.Panels.StiDictionaryPanelService dictPanel = Stimulsoft.Report.Design.Panels.StiDictionaryPanelService.GetService();
dictPanel.ServiceEnabled = false;
Stimulsoft.Report.Design.Panels.StiMessagesPanelService messPanel = Stimulsoft.Report.Design.Panels.StiMessagesPanelService.GetService();
messPanel.ServiceEnabled = false;
Stimulsoft.Report.Design.Panels.StiReportTreePanelService treePanel = Stimulsoft.Report.Design.Panels.StiReportTreePanelService.GetService();
treePanel.ServiceEnabled = false;
Here is a screen shot that shows this dark gray dot marked with a red rectangle:

When you move the mouse over that dark gray dot you receive the following exception:
"Bar.Items collection must contain at least one visible DockContainerItem object so auto-hide functionality can function properly."
This is the stack trace:
bei Stimulsoft.Controls.Win.DotNetBar.AutoHidePanel.SelectPanel(Int32 x, Int32 y)
bei Stimulsoft.Controls.Win.DotNetBar.AutoHidePanel.TimerTick(Object sender, EventArgs e)
bei System.Windows.Forms.Timer.OnTick(EventArgs e)
bei System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
What do I have to do to hide this rest of the message panel that may cause the described exception?
I thank very much in advance for any help.
Yours
munich