Gestita meglio la presenza di due sheet sulla stessa pagina

git-svn-id: svn://10.65.10.50/trunk@90 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1994-08-29 13:06:35 +00:00
parent 30ff8f5f11
commit 153fc29d92

View File

@ -325,7 +325,7 @@ bool TSpreadsheet::destroy(int rec)
enable_cell(_str.items(), -1); // Enable last line
}
if (ok) xi_cell_request(_list);
if (ok) update(-1);
return ok;
}
@ -335,11 +335,11 @@ void TSpreadsheet::update(int row)
{
if (row < 0)
{
xi_cell_request(_list);
xi_cell_request(_list); // Force updatde
xi_scroll(_list, XI_SCROLL_FIRST);
// XI_OBJ* itf = xi_get_itf(win());
// xi_move_focus(itf);
set_front_window(win());
XI_OBJ* itf = xi_get_itf(win()); // Remove focus
xi_move_focus(itf);
set_front_window(win()); // Seems necessary
}
else
update_rec(row);