defmask.h Sostituito SCONTO e ORA con SCONTO_FUNC e ORA_FUNC

lffiles.h    Tolto commento @M
msksheet.cpp Eliminata possibilita di doppia notifica del K_ENTER


git-svn-id: svn://10.65.10.50/trunk@2375 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-01-03 12:12:03 +00:00
parent 090e470352
commit 898853102e
3 changed files with 4 additions and 5 deletions

View File

@ -89,8 +89,8 @@
#define ZEROFILL_FUNC 19 1 #define ZEROFILL_FUNC 19 1
#define ALPHA_FUNC 20 0 #define ALPHA_FUNC 20 0
#define NOT_EMPTY_CHECK_FIELD 21 0 #define NOT_EMPTY_CHECK_FIELD 21 0
#define ORA 22 0 #define ORA_FUNC 22 0
#define SCONTO 23 0 #define SCONTO_FUNC 23 0
#define VALEXPR VALIDATE EXPR_FUNC #define VALEXPR VALIDATE EXPR_FUNC
#define NUM_EXPR VALEXPR 0 #define NUM_EXPR VALEXPR 0

View File

@ -1,5 +1,4 @@
#ifndef __LFFILES_H #ifndef __LFFILES_H
// @M
#define __LFFILES_H #define __LFFILES_H
#define LF_DIR 1 #define LF_DIR 1
@ -97,7 +96,6 @@
#define CNF_GENERAL 10000 #define CNF_GENERAL 10000
#define CNF_STUDIO CNF_GENERAL + 1 #define CNF_STUDIO CNF_GENERAL + 1
#define CNF_DITTA CNF_GENERAL + 2 #define CNF_DITTA CNF_GENERAL + 2
// @END
#endif // __LFFILES_H #endif // __LFFILES_H

View File

@ -988,6 +988,7 @@ void TSpreadsheet::list_handler(XI_EVENT *xiev)
{ {
mask2str(_cur_rec); // Update sheet with mask contents mask2str(_cur_rec); // Update sheet with mask contents
ok = notify(_cur_rec, K_ENTER); // Notify edit ok = notify(_cur_rec, K_ENTER); // Notify edit
_row_dirty = FALSE; // Avoid double notifications!
} }
if (ok) if (ok)
{ {
@ -1454,7 +1455,7 @@ void TSpreadsheet::enable_cell(
if (ba == NULL) if (ba == NULL)
{ {
if (on) return; // Don't waste time and memory if (on) return; // Don't waste time and memory
ba = new TBit_array(_column_disabled); ba = new TBit_array(column);
_disabled.add(ba, row); _disabled.add(ba, row);
} }