I have created many shortcut/popup (aka context, or right-click) menus for my
application - instead of toolbars or standard drop-down menus.
Within my custom menu, I am using =ShowMainMenu("item") in the On Action
event where ShowMainMenu is a public function in frmMain, and "item" is a
string mapping to a button click event.
(error trapping omitted)
Public Function ShowMainMenu(strItem As String) As Boolean
Dim blnResult As Boolean
Select Case strItem
Case "firstItem"
cmdFirst_Click
Case "secondItem"
cmdSecond_Click
End Select
ShowMainMenu = blnResult
End Function
(each form has a variation on this function)
It appears that my menus work fine in forms that are not modal dialog
windows, but the modal ones seem to block the communication between the menu
and the form. I have a break set on the function, but it never trips.
I have a few forms that are opened modally AND non-modally depending on the
calling form. Modal = no workie.
Is this a known limitation? Is there some sort of setting somwhere or VBA
code I can write to work around this?