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
1175
Keep user from dragging floating pane and intercept right click
posted

I want to allow a user to organize a form they want and then lock it down

so far I have this 

ultraDockManager1.ShowCloseButton = false;

ultraDockManager1.ShowPinButton = false;  

foreach (DockAreaPane dap in ultraDockManager1.DockAreas)

{

dap.Settings.AllowDragging = DefaultableBoolean.False;

dap.Settings.DoubleClickAction = PaneDoubleClickAction.None;

}

but after doing dap.Settings.AllowDragging, the dock area can still be dragged around.

I also need to stop the user from right clicking the dock and getting the menu as well as be able to intercept that menu and add a menu item of my own. Thank you in advance for any help, Jamie

Parents
No Data
Reply
  • 44743
    posted

    It is the DockableControlPanes which are dragged and double-clicked, not the DockAreaPanes. You can apply these settings to all panes by setting them on the dock manager:

    this.ultraDockManager1.DefaultPaneSettings.AllowDragging = DefaultableBoolean.False;
    this.ultraDockManager1.DefaultPaneSettings.DoubleClickAction = PaneDoubleClickAction.None;

    As for the context menu, you cannot prevent it from displaying, but you can disable each menu item in the context menu:

    this.ultraDockManager1.DefaultPaneSettings.AllowClose = DefaultableBoolean.False;
    this.ultraDockManager1.DefaultPaneSettings.AllowFloating = DefaultableBoolean.False;
    this.ultraDockManager1.DefaultPaneSettings.AllowPin = DefaultableBoolean.False;

    The UltraDockManager does not currently allow the ability to add custom menu items to this context menu. You can submit a feature request for this ability: http://devcenter.infragistics.com/Protected/RequestFeature.aspx.

Children
No Data