maskfld.cpp Corretto ordine degli hits nella do_output

msksheet.cpp  Aggiunto off_cell_handler sul doppio click


git-svn-id: svn://10.65.10.50/trunk@4918 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1997-07-25 13:11:55 +00:00
parent ba13baa9e1
commit c50f740fee
2 changed files with 21 additions and 3 deletions

View File

@ -2035,9 +2035,12 @@ void TBrowse::do_output(CheckTime t)
TToken_string flds(24, '+');
const TRelation& relation = *_cursor->relation();
_out_fn.restart();
for (const char* fld = _out_id.get(0); fld && *fld; fld = _out_id.get())
TBit_array spotted;
_out_fn.restart();
const char* fld;
for (fld = _out_id.get(0); fld && *fld; fld = _out_id.get())
{
const short id = field().atodlg(fld);
TMask_field& f = field(id);
@ -2075,11 +2078,25 @@ void TBrowse::do_output(CheckTime t)
hit = TRUE;
}
}
/*
if (hit)
{
f.check();
f.on_hit();
}
*/
spotted.set(id, hit);
}
}
for (fld = _out_id.get(0); fld && *fld; fld = _out_id.get())
{
const short id = field().atodlg(fld);
if (spotted[id])
{
TMask_field& f = field(id);
f.check();
f.on_hit();
}
}

View File

@ -1069,6 +1069,7 @@ bool TSpreadsheet::event_handler(XI_OBJ* itf, XI_EVENT *xiev)
refused = TRUE;
break;
case XIE_DBL_CELL:
if (off_cell_handler())
{
_check_enabled = FALSE;