ModalCallbackFunction Class Reference - error in the online doc examples

#1

It is:
someKindOfComp->enterModalState (ModalCallbackFunction::create (myCallbackFunction, 3.0));

But should be:
someKindOfComp->enterModalState (true, ModalCallbackFunction::create (myCallbackFunction, 3.0));
or
someKindOfComp->enterModalState (false, ModalCallbackFunction::create (myCallbackFunction, 3.0));

where enterModalState is:
void enterModalState (bool takeKeyboardFocus=true, ModalComponentManager::Callback *callback=nullptr, bool deleteWhenDismissed=false)

So all examples compile without errors but do not work correctly.

0 Likes

#2

Thanks, I’ll get those updated.

0 Likes