Removing (File) tab from Ribbon & removing database title (1 Viewer)

Capitala

Member
Local time
Today, 20:30
Joined
Oct 21, 2021
Messages
58
Good evening all!
I use the following Ribbon XML code in a UsysRibbon table. I got it from these forums.
I need to remove the (File) menu and also to remove the title that appears at the top of the database (which displays the file name and path).
Thanks in advance

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnRibbonLoad">
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileOpenDatabase" visible="false"/>
<button idMso="FileNewDatabase" visible="false"/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false"/>
</officeMenu>
<tabs>
<tab id="tab1" getLabel="GetLabel" getVisible="GetVisible">

<group id="grp1_1" getLabel="GetLabel">
<button id="btn1_1_1" size="large" getLabel="GetLabel" getScreentip="GetScreentip" imageMso="DatabasePermissionsMenu" onAction="OnActionButton" />
<button id="btn1_1_2" size="large" getLabel="GetLabel" getScreentip="GetScreentip" imageMso="PrintPreviewClose" onAction="OnActionButton" />
</group>
</tab>

<tab id="tab2" getLabel="GetLabel" getVisible="GetVisible">
<group id="grp2_1" getLabel="GetLabel" getVisible="GetVisible">
<labelControl id="lbl2_1_3" getLabel="GetLabel" />
</group>
<group id="grp2_2" getLabel="GetLabel" getVisible="GetVisible">
</group>
<group id="grp2_3" getLabel="GetLabel" >
<button id="btn1_1_3" size="large" getLabel="GetLabel" getScreentip="GetScreentip" imageMso="PrintPreviewClose" onAction="OnActionButton" />
</group>
</tab>
<tab id="tab3" getLabel="GetLabel" getVisible="GetVisible">
<group id="grp3_1" getLabel="GetLabel" getVisible="GetVisible">
<labelControl id="lbl3_1_4" getLabel="GetLabel" />
</group>
<group id="grp3_2" getLabel="GetLabel" getVisible="GetVisible">
</group>
<group id="grp3_3" getLabel="GetLabel" getVisible="GetVisible">
</group>
<group id="grp3_4" getLabel="GetLabel" getVisible="GetVisible">
<button id="btn1_1_4" size="large" getLabel="GetLabel" getScreentip="GetScreentip" imageMso="PrintPreviewClose" onAction="OnActionButton" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
 

Capitala

Member
Local time
Today, 20:30
Joined
Oct 21, 2021
Messages
58
Thanks. I'll try it and update your goodselves.
 

isladogs

MVP / VIP
Local time
Today, 20:30
Joined
Jan 14, 2017
Messages
18,186
I didn't study your code but have a solution for removing the File menu items on my website.

You cannot remove the File menu itself but you can empty it...
The only way to remove it is by removing the ribbon completely.

You can remove the file name/path from the title bar by setting the application title caption to whatever you want.
To remove it completely, use a space for the caption.
 

Users who are viewing this thread

Top Bottom