How do I control right click options on Ribbon?

Support forum for ARG-Software Design Lab. Command Bars Library [http://www.arg.kirov.ru/]
Locked
Kevin
Posts: 4
Joined: Tue Nov 09, 2010 6:30 pm

How do I control right click options on Ribbon?

Post by Kevin »

Hi!

I am trying to figure out how to control right click options on ribbon. For example when I right click on the ribbon it gives me 3 choices. To add to quick access toolbar, to show quick access toolbar below the ribbon, and to minimize the ribbon.

Does anyone know how to disable these or add custom ones?

Thanks!
AlexG
ARG-Software Design Lab.
Posts: 36
Joined: Sat Nov 14, 2009 5:14 pm

Re: How do I control right click options on Ribbon?

Post by AlexG »

You cannot add custom items to those menus, but you can remove (hide) items and change (localize) captions.

Items visibility depends on the following Ribbon properties (here are values to show all menu items, see images below):

Code: Select all

Ribbon.DisableCustomize = .F.
Ribbon.AllowQuickAccessToolbarCustomization = .T.
Ribbon.AllowQuickAccessToolbarPositionChange = .T.
Ribbon.AllowMinimize = .T.
Image
Image
Image


To hide "More Commands..." and "Customize Quick Access Toolbar...":

Code: Select all

Ribbon.DisableCustomize = .T.
To hide "Show QAT Below (Above) the Ribbon":

Code: Select all

Ribbon.AllowQuickAccessToolbarPositionChange = .F.
To hide captions of QAT buttons ("New", "Open" and so on) and "Add to (Remove from) QAT" item:

Code: Select all

Ribbon.AllowQuickAccessToolbarCustomization = .F.
To hide "Minimize the Ribbon":

Code: Select all

Ribbon.AllowMinimize = .F.
To change (localize) captions you need to use LocalizeString method of the CommandBarsManager object. Below are images with changed captions (you can also see there indexes that has to be passed to the LocalizeString method to change/localize specific caption):

Image
Image
Image
With best regards,

Alex Grigorjev
(ARG-Software Design Lab.)
Locked