mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 10:21:10 +02:00
Display[Error|Info]Message: Add optional parameter 'Caption'
This commit is contained in:
@@ -334,7 +334,27 @@ void DisplayErrorMessage(const char * const ErrorMsg)
|
||||
ShowMsg(LOCALE_MESSAGEBOX_ERROR, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||
}
|
||||
|
||||
void DisplayInfoMessage(const char * const ErrorMsg)
|
||||
void DisplayErrorMessage(const char * const ErrorMsg, const neutrino_locale_t Caption)
|
||||
{
|
||||
ShowMsg(LOCALE_MESSAGEBOX_INFO, ErrorMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
ShowMsg(Caption, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||
}
|
||||
|
||||
void DisplayErrorMessage(const char * const ErrorMsg, const std::string &Caption)
|
||||
{
|
||||
ShowMsg(Caption, ErrorMsg, CMessageBox::mbrCancel, CMessageBox::mbCancel, NEUTRINO_ICON_ERROR);
|
||||
}
|
||||
|
||||
void DisplayInfoMessage(const char * const InfoMsg)
|
||||
{
|
||||
ShowMsg(LOCALE_MESSAGEBOX_INFO, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
}
|
||||
|
||||
void DisplayInfoMessage(const char * const InfoMsg, const neutrino_locale_t Caption)
|
||||
{
|
||||
ShowMsg(Caption, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
}
|
||||
|
||||
void DisplayInfoMessage(const char * const InfoMsg, const std::string &Caption)
|
||||
{
|
||||
ShowMsg(Caption, InfoMsg, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO);
|
||||
}
|
||||
|
Reference in New Issue
Block a user