Patch level : 10.0 537

Files correlati     :  lv3.exe Librerie
Ricompilazione Demo : [ ]

se metto una quantità suòllì ultima riga con invio si crea una nuova riga e viene cancellata la quantità
( che venga creata una nuova riga e' giusto )


git-svn-id: svn://10.65.10.50/trunk@19701 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2009-12-01 16:42:41 +00:00
parent cad8b2e0aa
commit c827bf892c

View File

@ -1787,7 +1787,7 @@ bool TSpreadsheet::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
switch (k)
{
case K_DOWN:
if (_auto_append && _cur_row == items() - 1)
if (_auto_append && _cur_rec == items() - 1)
add_row_auto();
break;
case K_ROWEDIT:
@ -1841,7 +1841,7 @@ bool TSpreadsheet::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
_cur_col = min(fcol, lcol);
}
if (_auto_append && k == K_ENTER && _cur_row == items() - 1)
if (_auto_append && k == K_ENTER && _cur_rec == items() - 1)
{
dispatch_e_char(parent(), K_DOWN);
refused = true;
@ -2531,8 +2531,8 @@ bool TSpreadsheet::add_row_auto()
if (_check_enabled)
{
on_idle(); // Termina tutti gli eventuali update in corso
if (test_focus_change() && active())
if (active() && xi_move_focus(get_interface()))
{
int rec = -1;