Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Disable Context menu on caption
posted

Hi,

A right click on the caption of a View/Pane opens a context menu, containing, for example, the items "Hide" "Floating", "Autohide". Is it possiple to deactive this context-menu?

However, the corresponding buttons ("Close", "Autohide" etc..) in the right corner of the caption  should stay!

Any help appreciated!

Thanks in advance

Thomas U.

 

Parents
No Data
Reply
  • 440
    Suggested Answer
    posted

    First I realize it would be better to hide the whole menu, but I do not see that option.

    I did find that you could do this.  Let me know if you find a way to completly hide the menu.

     

     

     

     

     

     

     

     

     

     

     

    DockableGroupPane dgpTemplate = new DockableGroupPane();

    dgpTemplate.ChildPaneStyle = ChildPaneStyle.TabGroup;

    dgpTemplate.DefaultPaneSettings.AllowClose = Infragistics.Win.DefaultableBoolean.False;

    dgpTemplate.DefaultPaneSettings.AllowFloating = Infragistics.Win.DefaultableBoolean.False;

    dgpTemplate.DefaultPaneSettings.AllowPin = Infragistics.Win.DefaultableBoolean.False;

     

     

    DockableGroupPane dgpProject = dgpTemplate;

    dgpProject.Panes.Add(dcpProject);

     

Children