XML Ribbon

G

Guest

I'm creating custom ribbon and I want to hide the default tabs in Access so I
put in the following in the appropriate place.

<tab idMso="TabHome" visible="false" />
<tab idMso="TabCreate" visible="false" />
<tab idMso="TabExternalData" visible="false" />
<tab idMso="TabDatabaseTools" visible="false" />
<tab idMso="TabCreate" visible="false" />
<tab idMso="TabAddIns" visible="false" />

My problem is that all the tabs are hidden except the "Home" tab. Can
anyone tell me why? I believe I'm referencing the name correctly.

I have the <ribbon startFromScratch="false">

I know that I can set it to true and all the tabs will be hidden but I want
to hide them individually. Thanks.
 
A

Albert D. Kallal

I don't think your approach is going to work. You can make a tab visible, or
not, but that does not necessary *select* the tab.

In other words, in code you can make visible a tab, but you can NOT have
code *select" that tab.

I not 100% sure, but I don't think that what you looking for.

I suspect that you actually looking to have groups of controls appear on
your custom ribbon.

I would likely simply have one tab, and then add "groups" to that tab, since
then the user will not have to click on a particular tab to get to the
features your trying to expose.

eg:

<group idMso="GroupClipboard" />
<group idMso="GroupFindAccess" />
<group idMso="GroupSortAndFilter" />

If you include the above in your ribbons, then you have the clip board, the
find, and the sorting options.

I think you have to approach your design by "groups", not tabs since you can
program control what tab is selected (you can make one visible...but you
can't "move" to it in code).

I not tried your case, but my bets are that you must have least ONE tab
always showing...

And, I wound try the start from scratch = true, and build a custom one....
 
G

Guest

Sorry about the tone of the following reply, I know it sounds rude. I don't
mean for it to.

What do you mean by *select* the tab? I'm not trying to select anything. I
just want to hide the Home, View, External Data etc tabs. I'd like to not
use the start of from scratch and instead just make those tabs
visible="false". When I hide all the default tabs then I just want my custom
tabs to show. My code will hide all of the tabs EXCEPT the home tab. I'm
wondering why that's happening.

The reason why I want to do this is because when I do
startfromscratch="true", contextual tabs such as the Preview tab does not
show up when a report is opened in preview mode which can make it difficult
to close the report.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top