JUCE AlertWindow::showYesNoCancelBox() allows one to set ones own custom text for buttons . Likewise, AlertWindow::showOkCancelBox() allows custom button 1 and button2 valiues.
However if we opt to use NATIVE OSX alerts via LookandFeel the custom button text gets ignored: This means for example we cannot use native alerts that incorporate "Abort", "Retry" etc etc..
Basically ALL the OSX native Alerts - have hard-coded button text !!.
int JUCE_CALLTYPE NativeMessageBox::showYesNoCancelBox (AlertWindow::AlertIconType iconType,
const String& title, const String& message,Component* /*associatedComponent*/, ModalComponentManager::Callback* callback)
{
return OSXMessageBox::show (iconType, title, message, callback,
"Yes", "Cancel", "No", callback != nullptr);
}
Can we please have an added option that allows ( for OSX ) us to use our own text ! this then would at least give consistency when opting for
native OSX dialogs
int JUCE_CALLTYPE NativeMessageBox::showYesNoCancelBox (AlertWindow::AlertIconType iconType,
const String& title, const String& message, const String& button1 , const String& button2 , const String& button3 , Component* /*associatedComponent*/, ModalComponentManager::Callback* callback)
{
return OSXMessageBox::show (iconType, title, message, callback,
button1, button2, button3, callback != nullptr);
}
Failing this - how do i write code and change #includes etc etc so that I can just use
OSXMessageBox::show() in my own code ?
