How to remove the Accelerators from TMainMenuActionBar ?
can't seem to find the AutoHotKey = maManual property to change, nor to find any other property that will cause the right effect.
(Assuming the question is about TActionMainMenuBar
) you would set the AutoHotKeys
property through the ActionManager
component that the action bar is linked to (through its ActionManager
property). Unlike the TMainMenu's AutoHotKeys, this one is a boolean property.
To set the property at design time,
...
button on the right side of the ActionBars
property in OI.
Editing ActionManager1.ActionBars'
dialog.
...
button on the right side of the Items
property in OI, which will launch the Editing ActionManager1.Items
dialog
AutoHotKeys
property to True or False in OI.
At run time you can do:
ActionManager1.ActionBars[0].Items.AutoHotKeys := False;
Note that you might need to re-set the Caption of an Item after toggling AutoHotKeys. I.e. 'F&ormat' -> 'Format'.