Sorry, this is a newbie question.
I have a parent component that contains a child component. At the moment, the only way I can get the child component to receive mouse events is to explicitly pass them from the parent to the child. E.g.:
void ParentComponent::mouseDown (const MouseEvent& m)
{
childComponent->mouseDown (m);
}
Silmilarly, the only way I can get the child to update the mouseCursor is to explicitly hunt the value from inside the parent. E.g.:
void ParentComponent::paint (Graphics& g)
{
// -snip-
setMouseCursor (childComponent->getMouseCursor());
}
It seems like the parent component is blocking mouse control to and from the child. I’m sure I’m missing something. How do I get the child component to receive the mouse events directly?
Thanks!
-Dan