When used inside a plugin, calloutboxes do not appear to be dismissed by events that happen outside of the plugin window area. Therefore - If I drag the plugin titlebar while the calloutbox is open, the calloutbox stays stuck in the same poisition on the screen, until a mouse event inside the actual plugin window area closes it.
This also means that if you swap the plugin in the channel strip, or delete the channel completely (whilst the calloutbox is open), it causes the DAW to crash. Presumably the DAW gets confused by the hanging calloutbox window, after it's parent plugin has been removed.
I have noticed that the popupmenus in my project exhibit the behaviour I would like for my calloutbox: when the mouse is clicked anywhere on screen, the popup disappears. I think it would probably make sense for calloutboxes to exhibit the same dissmissal behaviour the as popupmenus.
Does anyone have any advice on how I can get the desired calloutbox behaviour? I have subclassed calloutbox already so can make changes to the component in there.
Thanks in advance