Modifica per far funzionare meglio la pagina di inserimento delle righe

git-svn-id: svn://10.65.10.50/trunk@4092 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1997-01-17 18:15:58 +00:00
parent 3e31ea653f
commit 7875e1ba3d

View File

@ -3,7 +3,7 @@
#endif
#ifndef __VE0100O_H
#include "ve0100o.h"
#include "ve0100o.h"
#endif
#ifndef __VEINI_H
@ -135,20 +135,18 @@ bool TMotore_application::ss_handler( TSheet_field& ss, int r, KEY key )
if ( key == K_DEL ) // Cancellazione
app()._doc->destroy_row(r + 1, TRUE);
else
if ( key == K_INS ) // Inserimento
if (key == K_CTRL + K_INS)
{
TMask & emask = app().edit_mask();
TRiga_documento & riga = app()._doc->insert_row(r + 1, emask.get( F_LBTIPORIGA ));
TString16 s(app()._clifor->get(LF_CFVEN, "CODMAG"));
s << app()._clifor->get(LF_CFVEN, "CODDEP");
riga.put("CODMAG", s);
riga.autoload(ss);
ss.select(r);
}
else
if (key == K_CTRL + K_INS)
ss.select(r);
return TRUE;
}