Sistemazione cagatelle sheet
git-svn-id: svn://10.65.10.50/trunk@1775 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e2d52247d0
commit
e6a4caa2fa
@ -525,7 +525,7 @@ void TMask_field::set_prompt(const char* p)
|
|||||||
|
|
||||||
|
|
||||||
void TMask_field::set(const char* s)
|
void TMask_field::set(const char* s)
|
||||||
{
|
{
|
||||||
if (mask().is_running())
|
if (mask().is_running())
|
||||||
{
|
{
|
||||||
set_window_data(s);
|
set_window_data(s);
|
||||||
|
@ -386,10 +386,14 @@ void TSpreadsheet::update_rec(int rec)
|
|||||||
{
|
{
|
||||||
const int riga = rec2row(rec);
|
const int riga = rec2row(rec);
|
||||||
if (riga >= 0)
|
if (riga >= 0)
|
||||||
{
|
{
|
||||||
|
if (rec == selected())
|
||||||
|
xi_set_focus(_itf);
|
||||||
XI_OBJ row;
|
XI_OBJ row;
|
||||||
XI_MAKE_ROW(&row, _list, riga);
|
XI_MAKE_ROW(&row, _list, riga);
|
||||||
xi_cell_request(&row); // Update internal values
|
xi_cell_request(&row); // Update internal values
|
||||||
|
if (rec == selected()/* && _cur_col > 0*/)
|
||||||
|
set_focus_cell(riga, _cur_col);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -399,6 +403,8 @@ void TSpreadsheet::set_focus_cell(int riga, int colonna)
|
|||||||
xvt_scr_set_focus_vobj(win());
|
xvt_scr_set_focus_vobj(win());
|
||||||
const int r = row2rec(riga);
|
const int r = row2rec(riga);
|
||||||
|
|
||||||
|
if (colonna <= 0) colonna = 1;
|
||||||
|
|
||||||
for (; colonna < _columns; colonna++)
|
for (; colonna < _columns; colonna++)
|
||||||
if (!cell_disabled(r, colonna-1))
|
if (!cell_disabled(r, colonna-1))
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user