[Padict-cvs] padict/include UICommon.c,1.1.2.4,1.1.2.5 UICommon.h,1.1.2.4,1.1.2.5
Brought to you by:
largegreenwood
From: Benoit C. <ben...@us...> - 2004-11-21 12:25:56
|
Update of /cvsroot/padict/padict/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2381/include Modified Files: Tag: unstable UICommon.c UICommon.h Log Message: start to implement the fetch record routine for KingKanji lessons start standardizing error reporting function across modules Index: UICommon.h =================================================================== RCS file: /cvsroot/padict/padict/include/UICommon.h,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** UICommon.h 26 Sep 2004 23:56:18 -0000 1.1.2.4 --- UICommon.h 21 Nov 2004 12:25:39 -0000 1.1.2.5 *************** *** 18,19 **** --- 18,21 ---- //unfreeze the screen froze by FrmGotoFormNoFlicker void FrmGotoFormUnfreeze() DB_DICT_SECTION; + void error (const char* err1, const char *err2, const char* err3) DB_DICT_SECTION; + void inputBox (const char* err1, const char *err2, const char* err3, Char * iBuf, Int16 iBufLength) DB_DICT_SECTION; Index: UICommon.c =================================================================== RCS file: /cvsroot/padict/padict/include/UICommon.c,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -C2 -d -r1.1.2.4 -r1.1.2.5 *** UICommon.c 28 Sep 2004 15:36:43 -0000 1.1.2.4 --- UICommon.c 21 Nov 2004 12:25:39 -0000 1.1.2.5 *************** *** 92,93 **** --- 92,118 ---- } + void error (const char* err1, const char *err2, const char* err3) + { + if (err3) { + FrmCustomAlert(alert_error, err1, err2, err3); + } else if (err2) { + FrmCustomAlert(alert_error, err1, err2, " "); + } else { + FrmCustomAlert(alert_error, err1, " ", ""); + } + return; + } + + void inputBox (const char* err1, const char *err2, const char* err3, Char * iBuf, Int16 iBufLength) + { + if (err3) { + FrmCustomResponseAlert(alert_GenericOK, err1, err2, err3, iBuf, iBufLength, 0); + } else if (err2) { + FrmCustomResponseAlert(alert_GenericOK, err1, err2, " ", iBuf, iBufLength, 0); + } else { + FrmCustomResponseAlert(alert_GenericOK, err1, " ", "", iBuf, iBufLength, 0); + } + return; + } + + |