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.
Hello Danko,
thanks a lot, works perfectly!
Sincerely,
Thomas
Thanks that is the answer I was looking for.
Hello Thomas and Joe,
UltraDockManager component has a property that is called UseDefaultContextMenus.
If you set this property to "False" , you will be still able to use the buttons in the caption and in the same time without context menu when right click on the caption.
Please let me know if that is what you are looking for.
Danko Valkov
Developer Support Engineer
Infragistics, Inc.
Hi Joe,
thank you for your reply.
Your code will make the correspondings buttons (in the right corner) dissappear.
They should stay.
Hope there is also a possibility to hide the whole menu and leave the buttons where they are.
Thanks
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);