I have an application with a main form. In this form I have placed three TActionMainMenuBars, because the application essentially runs in three different modes.
The menu bars are all constructed from actions stored(proxied) in an TActionManager on the main form. The ActionManager actually references actionlists on various other forms.
The menu bars are then shown+enabled and hidden+disabled such that only one is visible at a time. This works well, with the actions operating if clicked on or if navigated through using ALT and then the arrow keys or the character underlined in their caption.
The problem is however that the actions do not seem to respond to any shortcut key presses.
Does anyone know what could be causing the actions not to fire?
I will happily provide more information if needed, I am programming in C++Builder 2007 RAD Studio in WinXP SP3.
Thanks to anyone who reads this, or even reads this and comes up with a solution!
PeterMJ
Update: I failed to stated that the shortcuts in the different menus overlap in that the same shortcuts are used in the different menus for different actions, but all shortcuts are unique in there own menu.
I have also since simplified the problem in a test application, with two TActionMainMenuBars, and all actions shared a single action manager. In this case I have two actions with the same shortcut. They are placed on different menus. Then one menu is enabled at a time. In this case the shortcuts do work, BUT when using the common shortcut only the action in the first menu is fired, even when the holding menu is disabled.
This is slightly better than my actual problem in that some actions do fire, but highlights that the actions are not being triggered correctly. Does anyone no of a solution?