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:
parent
3e31ea653f
commit
7875e1ba3d
@ -3,7 +3,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __VE0100O_H
|
#ifndef __VE0100O_H
|
||||||
#include "ve0100o.h"
|
#include "ve0100o.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef __VEINI_H
|
#ifndef __VEINI_H
|
||||||
@ -135,20 +135,18 @@ bool TMotore_application::ss_handler( TSheet_field& ss, int r, KEY key )
|
|||||||
if ( key == K_DEL ) // Cancellazione
|
if ( key == K_DEL ) // Cancellazione
|
||||||
app()._doc->destroy_row(r + 1, TRUE);
|
app()._doc->destroy_row(r + 1, TRUE);
|
||||||
else
|
else
|
||||||
if ( key == K_INS ) // Inserimento
|
if (key == K_CTRL + K_INS)
|
||||||
{
|
{
|
||||||
TMask & emask = app().edit_mask();
|
TMask & emask = app().edit_mask();
|
||||||
TRiga_documento & riga = app()._doc->insert_row(r + 1, emask.get( F_LBTIPORIGA ));
|
TRiga_documento & riga = app()._doc->insert_row(r + 1, emask.get( F_LBTIPORIGA ));
|
||||||
|
|
||||||
TString16 s(app()._clifor->get(LF_CFVEN, "CODMAG"));
|
TString16 s(app()._clifor->get(LF_CFVEN, "CODMAG"));
|
||||||
|
|
||||||
s << app()._clifor->get(LF_CFVEN, "CODDEP");
|
s << app()._clifor->get(LF_CFVEN, "CODDEP");
|
||||||
riga.put("CODMAG", s);
|
riga.put("CODMAG", s);
|
||||||
riga.autoload(ss);
|
riga.autoload(ss);
|
||||||
|
ss.select(r);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
if (key == K_CTRL + K_INS)
|
|
||||||
ss.select(r);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user