Divelements Community
Customer discussion of all Divelements products

Minimize the Ribbon command when no tabs are present causing an exception

Latest post 09-02-2008 12:49 by Tim Dawson. 1 replies.
  • 08-30-2008 19:48

    Minimize the Ribbon command when no tabs are present causing an exception

    Hello,

    If there are no tabs in the Ribbon control, and I choose to un-check the 'Minimize the Ribbon' command in the QuickAccessToolbar Chevron Button's drop down, then I get the following exception:

    ************** Exception Text **************
    System.InvalidOperationException: Operation is not valid due to the current state of the object.
       at Divelements.SandRibbon.Ribbon.set_Minimized(Boolean value)
       at Divelements.SandRibbon.x5df3193abe65f986.x0d1e07b82fd7d672(Boolean xc8051b100df41d07)
       at Divelements.SandRibbon.x5df3193abe65f986.OnActivateDropdown(Boolean keyboard)
       at Divelements.SandRibbon.Button.OnMouseDown(MouseEventArgs e)
       at Divelements.SandRibbon.ParentWidgetBase.OnMouseDown(MouseEventArgs e)
       at Divelements.SandRibbon.xf34bfe8059f352c4.OnMouseDown(MouseEventArgs e)
       at Divelements.SandRibbon.ParentWidgetBase.OnMouseDown(MouseEventArgs e)
       at Divelements.SandRibbon.SandRibbonControlBase.OnMouseDown(MouseEventArgs e)
       at Divelements.SandRibbon.Ribbon.OnMouseDown(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at Divelements.SandRibbon.SandRibbonControlBase.WndProc(Message& m)
       at Divelements.SandRibbon.Ribbon.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Now I have been able to disable the menu item by attaching an event to the ConfigureCustomizePopup event; however the Context Menu still shows this menu item enabled.

    My question is - how can I gain access to the Context menu that exists on the Ribbon control so I can disable the 'Minimize the Ribbon' menu item there as well - OR - is there a better way to fix this problem.

     

    Thanks,

     

    Mike

     

     

     

     

     

     

     

     

     

     

     

     

  • 09-02-2008 12:49 In reply to

    Re: Minimize the Ribbon command when no tabs are present causing an exception

    This is a bug in SandRibbon. It'll be fixed ready for the next release. Thanks for reporting it!

Page 1 of 1 (2 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems