Could someone please tell me how to hide the close button in the document manager or document.
Many thanks.
Hello Ian,
Depending of the document view style you can hide the Close button as follows:
if document view style is:
- MdiStandard; The type of Host property of the NUIDocument should be NMdiChild. In this case you should set CloseButton to false:
nDockManager1.DocumentStyle.DocumentViewStyle =
NUIDocument
NMdiChild
{
child.CloseButton =
}
- MdiTabbed; In this case you can set which buttons of the tabbed part to be visible by setting StripButtons property of the DocumentStyle:
nDockManager1.DocumentStyle.StripButtons =
Best Regards,Nevron Support Team
I have tried to test out this solution but I can't find the property DocumentStyle in my document manager which is defined as :
Am I missing something here?
Many thanks
Hi Ian,
DocumentStyle is a property of the NDockManager not NDocumentManager.
Hi,
Does this mean I cannot disable the close on the document manager or its documents?
I did notice that the Document Manager has an event for change of style which added to the confusion.
Regards
You can disable Close button of the NUIDocument depending of the document view style, as it is describe in the example code snipped above.
My problem is now fixed thanks to the example code.