Hi,
In order to be able to use fadeOutComponent method on a Component added to the desktop, it would be nice to replace this code:
comp->getParentComponent()->addAndMakeVisible (this);
by this one:
if (comp->getParentComponent())
comp->getParentComponent()->addAndMakeVisible (this);
else
{
addToDesktop (0);
setAlwaysOnTop (comp->isAlwaysOnTop());
setVisible (true);
}
It woked fine for me but it may need some improvements.
I hope this can help.
Regards,
Fabrice