Hi,
In most case we can the classic message-based redraw of the user interface is fine. However, sometimes (for activity led-type) I would like to be able to force the redraw of a bitmap component so it goes in sync with the process.
Something like
activityComponent->SetActive(true) ;
activityComponent->repaint() ;
// process here activity… fairely short
activityComponent->SetActive(false) ;
activityComponent->repaint() ;
Since I do this type of scheme from the main thread (it’s based on user action), by the time juce get back to process messages, the activityComponent never shows as active. doing it from a side thread would make everything really complicated.
What is the correct way to handle this type of scheme ?
Thanks.