The response in the lambda callback when using the juce::AlertWindow(MessageBoxOptions&, std::function<void(int)>)
is in 1000->numButtons
range, instead of the 0->numButtons
range as expected. This was not true in Juce v6.1.2, and I haven’t had the chance to check if this is true with Windows yet.
juce::AlertWindow::showAsync(juce::MessageBoxOptions().withTitle("Title")
.withMessage("Message")
.withButton("Yes")
.withButton("No")
.withButton("Cancel"),
[this](int response) { DBG("Response: " << response); });