Hi, the following code:
CallOutBox callOut( m_colour_selector, rect, this ); callOut.runModalLoop();
causes an assertion when clicking outside the colour picker to dismiss it on the final line of:
// if component methods are being called from threads other than the message
// thread, you’ll need to use a MessageManagerLock object to make sure it’s thread-safe.
grabFocusInternal (focusChangedDirectly, true); // A component can only be focused when it's actually on the screen! // If this fails then you're probably trying to grab the focus before you've // added the component to a parent or made it visible. Or maybe one of its parent // components isn't yet visible. jassert (isShowing() || isOnDesktop());
Checked back in 4.3.1 and this assertion not happening. Not sure if this is intentional or not?