Quite often I want some component that appears on top of my existing UI, that I would like to dismiss when a click is happening outside of the pop-over component. I don’t want to use a transparent Component
covering the whole UI, as I would like clicks on other UI items to register even if the pop-over is visible (but have the pop-over hide itself when this happens).
Is there some simple way to achieve this that I have overlooked?
If there were a mouseClickOutside
virtual method in Component
, it could simplify things enormously for me.