Patch level : 12.0 no-patch

Files correlati     :
Commento            :

agiunta la funzione cond_error_box
This commit is contained in:
Alessandro Bonazzi 2020-12-11 07:11:27 +01:00
parent c8699875f9
commit 383c56648f
2 changed files with 17 additions and 0 deletions

View File

@ -91,6 +91,22 @@ bool warning_box(
return 0;
}
// @msg error_box | Crea una finestra di ERRORE o di WARNING con il relativo messaggio
bool cond_error_box(
bool error, // @parm se vero errorre altrimenti warning
const char* fmt, // @parm Messaggio da stampare nella finestra
...) // @parmvar Uno o piu' parametri corrispondenti ai codici in <p fmt>
// @comm Se si opera in ambiente Windows crea la finestra con il bottone OK
// e l'icona punto esclamativo.
{
buildmsg();
if (error)
return error_box(msg);
else
warning_box(msg);
return true;
}
// @doc EXTERNAL
// @msg message_box | Crea una finestra di INFORMAZIONE con relativo il messaggio
bool message_box(

View File

@ -14,6 +14,7 @@ extern "C" {
bool warning_box(const char* fmt, ...);
bool sorry_box(const char* fmt, ...);
bool error_box(const char* fmt, ...);
bool cond_error_box(bool error, const char* fmt, ...);
bool fatal_box(const char* fmt, ...);
bool noyes_box(const char* fmt, ...);
int noyesall_box(const char* fmt, ...);