Patch level : 12.0 no-patch
Files correlati : Commento : agiunta la funzione cond_error_box
This commit is contained in:
		
							parent
							
								
									c8699875f9
								
							
						
					
					
						commit
						383c56648f
					
				@ -91,6 +91,22 @@ bool warning_box(
 | 
				
			|||||||
  return 0;
 | 
					  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
 | 
					// @doc EXTERNAL
 | 
				
			||||||
// @msg message_box | Crea una finestra di INFORMAZIONE con relativo il messaggio
 | 
					// @msg message_box | Crea una finestra di INFORMAZIONE con relativo il messaggio
 | 
				
			||||||
bool message_box(
 | 
					bool message_box(
 | 
				
			||||||
 | 
				
			|||||||
@ -14,6 +14,7 @@ extern "C" {
 | 
				
			|||||||
  bool warning_box(const char* fmt, ...);
 | 
					  bool warning_box(const char* fmt, ...);
 | 
				
			||||||
  bool sorry_box(const char* fmt, ...);
 | 
					  bool sorry_box(const char* fmt, ...);
 | 
				
			||||||
  bool error_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 fatal_box(const char* fmt, ...);
 | 
				
			||||||
  bool noyes_box(const char* fmt, ...);
 | 
					  bool noyes_box(const char* fmt, ...);
 | 
				
			||||||
  int noyesall_box(const char* fmt, ...);
 | 
					  int noyesall_box(const char* fmt, ...);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user