I have a custom control that uses a popup menu, but which does not control a parameter, so the control class has its own
IPopupMenu members, instead of using
PromptUserInput. But whereas menus created by
PromptUserInput will close if the user clicks outside their boundaries, the UI doesn’t know to check whether my custom menu is open when it checks for mouse-down events, thus clicking outside the open menu has no effect.
I think what I need to do is, when the menu is opened, tell the UI to give focus to the custom control (which owns the popup menu control) and send any mouse-down events to it as long as the menu is open. Does this functionality exist in IGraphics?