Dev uses RibbonForm to open a multi-tab form, the Text of the main form displays a

  Recently in the Dev project, generally we only need to display the name of the application on the main form, and do not need to display the name of the Tab tab. Baidu has been wondering how to solve it for a long time. The official document only says that the title of the RibbonForm is A combined text consists of two parts: RibbonControl.ApplicationCaption and RibbonControl.ApplicationDocumentCaption . If RibbonControl.ApplicationCaption is not set , it is displayed as the text of RibbonForm , and RibbonControl.ApplicationDocumentCaption is displayed as the title of the currently active text. It didn't say how to not display RibbonControl.ApplicationDocumentCaption . My current solution is to set both RibbonControl.ApplicationCaption and RibbonForm.Text to empty, or not to set them, and set RibbonControl.ApplicationDocumentCaption to the name of the project or the name you need to display. The title will not change.

  And if you want to set the style of this combined title, you need to add the DefaultBarAndDockingController control on the interface  , and then set it inside, you can refer to other information for details.

  If you know how to set the RibbonControl.ApplicationDocumentCaption not to display, please leave a message and learn from each other!

   Also give you the address of the official document: https://documentation.devexpress.com/WindowsForms/114562/Controls-and-Libraries/Forms-and-User-Controls/Ribbon-Form

Guess you like

Origin www.cnblogs.com/zhenzaizai/p/12715554.html