MigLIorata gestione focus delle celle durante le ricercHe
git-svn-id: svn://10.65.10.50/trunk@5 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
b0ab13f0fc
commit
0d02237ffb
@ -489,8 +489,10 @@ void TSpreadsheet::list_handler(XI_EVENT *xiev)
|
||||
mask2str(cur_row);
|
||||
ok = notify(cur_row, K_ENTER); // Notify edit
|
||||
}
|
||||
if (!ok)
|
||||
else
|
||||
{
|
||||
xiev->refused = TRUE;
|
||||
set_dirty(2); // Set error status
|
||||
set_focus_cell(cur_row, cur_col);
|
||||
}
|
||||
check_enabled = TRUE;
|
||||
@ -508,7 +510,7 @@ void TSpreadsheet::list_handler(XI_EVENT *xiev)
|
||||
}
|
||||
else
|
||||
{
|
||||
xiev->refused = TRUE;
|
||||
xiev->refused = TRUE; // Refuse focus on disabled cells
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -1028,7 +1030,10 @@ bool TSheet_field::on_key(KEY k)
|
||||
{
|
||||
if (k == K_TAB)
|
||||
{
|
||||
set_dirty(_sheet->dirty());
|
||||
const bool spork = _sheet->dirty();
|
||||
if (spork < FALSE || spork > TRUE)
|
||||
return error_box("Tabella inconsistente: correggere i valori errati prima di uscirne");
|
||||
set_dirty(spork);
|
||||
}
|
||||
return TMask_field::on_key(k);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user