From 16e977654fb51330541048d72842ce013251a2b3 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 17 Dec 1996 12:06:03 +0000 Subject: [PATCH] Aggiunto recarray.h e modificate le set_notify git-svn-id: svn://10.65.10.50/trunk@4008 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ef/ef0101.h | 4 ++++ ef/ef0200.cpp | 20 +++++++++++++------- ef/ef0300.cpp | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/ef/ef0101.h b/ef/ef0101.h index 49d7623ae..7613389cc 100755 --- a/ef/ef0101.h +++ b/ef/ef0101.h @@ -2,6 +2,10 @@ #include #endif +#ifndef __RECARRAY_H +#include +#endif + ///////////////////////////////////////////////////////////// // definizione dell'oggetto Effetto con la classe TEffetto // ///////////////////////////////////////////////////////////// diff --git a/ef/ef0200.cpp b/ef/ef0200.cpp index 71807ed92..70302bbd7 100755 --- a/ef/ef0200.cpp +++ b/ef/ef0200.cpp @@ -119,19 +119,25 @@ bool Creazione_Effetti_da_EC::Gen_Handler(TMask_field& f, KEY k) bool Creazione_Effetti_da_EC::Gen_Notify(TSheet_field& sheet, int r, KEY k) { + if (k == K_CTRL + K_DEL) + return TRUE; + if (k == K_INS) + { + if (app().get_res().is_zero()) + { + warning_box("Residuo da ripartire gia' annullato"); + return FALSE; + } + else + return TRUE; + } + TToken_string & row = sheet.row(r); const real importo(row.get(1)); static real old_rata; switch (k) { - case K_INS: - if (app().get_res().is_zero()) - { - warning_box("Residuo da ripartire gia' annullato"); - return FALSE; - } - break; case K_SPACE: old_rata = importo; break; diff --git a/ef/ef0300.cpp b/ef/ef0300.cpp index 164bcdb89..b67bac65a 100755 --- a/ef/ef0300.cpp +++ b/ef/ef0300.cpp @@ -876,7 +876,7 @@ bool TVariazione_distinte::impdist_notify(TSheet_field& s, int r, KEY key) { if (s.to_check(key, TRUE)) calcola_totale(); - if (key == K_INS) // se si vuole aggiungere una riga alla sheet degli effetti nella distinta + if (key == K_CTRL + K_INS) // se si vuole aggiungere una riga alla sheet degli effetti nella distinta aggiungi(); return TRUE; }