Custom Ribbons...

Hi @Tera
The demo app when first downloaded has no security and the complete ribbon menu is shown.
The tutorial how to remove all items.
I've already showed the backstage view. Here is the 'front stage' showing a File menu (which is empty) and nothing else.
Specifically, no Home menu

Capture.PNG


Hope it helps
 
BTW - this is the same app opened in A2010 after applying all the security
A completely empty file menu and nothing else

SYD11.PNG

Exciting isn't it! :sneaky:
 
That section of code is slightly different in my code:

Code:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon startFromScratch="true">
<tabs>
   <tab idMso="TabHomeAccess" visible="false" />
</tabs>
....

Good to know that there are two methods that work.
 
To answer my own earlier question, you can also hide the Feedback menu item from the backstage using
XML:
<tab idMso="TabOfficeFeedback" visible="false"/>
Here is my amended XML:

XML:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
  <ribbon startFromScratch="true">
<tabs>
   <tab idMso="TabHomeAccess" visible="false" />
</tabs>
  </ribbon>
  <backstage>
   <tab idMso ="TabPrint" visible="false"/>
   <button idMso="ApplicationOptionsDialog" visible="false"/>
   <button idMso="FileExit" visible="false"/>
   <tab idMso="TabOfficeFeedback" visible="false"/>
  </backstage>
</customUI>

The result in A365 is a completely empty backstage ... though notice the two feedback emojis are still in the title bar

Capture.PNG


And the good news is that there are no errors using that XML in A2010 where there is no feedback item to hide.
Once again a completely empty backstage
 
I have done that too, but didn't post any code because if I opened a form and that form's ribbon 'property' setting was to the custom ribbon, then things in the backstage came back when the form was open. Did you check that, and does it happen to you?
 
I have done that too, but didn't post any code because if I opened a form and that form's ribbon 'property' setting was to the custom ribbon, then things in the backstage came back when the form was open. Did you check that, and does it happen to you?
@Micron I'm not sure if I understand the situation, but I changed the Ribbon Name property of a form to testRibbon. I don't have a ribbon with this name. If I close the form and open it, there's no change in backstage. Still he feedback is hidden.

2020-04-29_9-31-01.jpg
 
The result in A365 is a completely empty backstage

Colin, though having an empty backstage is great, But I use it for my FEs settings. I normally have 3 tabs in backstage for System options, Machine options and user options.
This EF is for a small database with only one tab for settings:

2020-04-29_9-38-55.jpg
 
Last edited:
Thanks, I will have to take another look. Perhaps I'm not using the correct db or something. That's for tomorrow...
 
@isladogs Now how about hiding Send a Frown, send a smile?

LOL. Easy. Hide the ribbon completely 😎
Capture.PNG


But if you want any part of the ribbon, I think you have to show the two faces.

However, if I'm going to lock down a database, I would provide any required options using a form

@Micron
I can't replicate what you described either, whether I use a fake or real named ribbon on the form.
The ribbon applied from the Options menu takes precedence over any form ribbon.
 

Users who are viewing this thread

Back
Top Bottom