Hi,
I have an OpenGLComponent. I put it here in simple form. It seems silly since I simplified it. consider I want to stop the computation when the mouse moves over the component. when the window is initialized, there is no problem with it and it enters mouseEnter() correctly but when I run the Computaion() the program never enters mouseEnter() by moving the mouse over the component and it never stops.
class A : public OpenGLComponent
{
bool StopConditionMet;
//...
void mouseEnter ( const MouseEvent & e )
{
DBG(JUCE_T("TEST"));
StopConditionMet = true;
}
//...
void Computation ()
{
StopConditionMet = false;
while (!StopConditionMet)
{
// ...
// heavy computation
// ...
}
}
}
I have the same problem with grab keyboard focus and keyPress()
can anyone help me please ?
:: Nikola Williams