Sistemato set_dirty in conseguenza di pressione bottone sheet

git-svn-id: svn://10.65.10.50/trunk@1086 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-03-09 08:48:24 +00:00
parent e8d676588d
commit 9d9a229d5e
2 changed files with 10 additions and 6 deletions

View File

@ -597,10 +597,12 @@ void TSpreadsheet::list_handler(XI_EVENT *xiev)
update(_cur_rec); update(_cur_rec);
TMask_field* button = col2field(_cur_col); TMask_field* button = col2field(_cur_col);
notify_change();
button->on_hit(); button->on_hit();
mask2str(_cur_rec); if (_mask.dirty())
{
notify_change();
mask2str(_cur_rec);
}
_check_enabled = TRUE; _check_enabled = TRUE;
} }
xiev->refused = TRUE; xiev->refused = TRUE;

View File

@ -1715,7 +1715,8 @@ bool TViswin::on_key (KEY key)
case K_CTRL_UP: case K_CTRL_UP:
dispatch_e_scroll (win(), K_UP); dispatch_e_scroll (win(), K_UP);
break; break;
case K_CTRL_DOWN: case K_CTRL_DOWN:
// TBI condizioniamo qui ??
dispatch_e_scroll (win(), K_DOWN); dispatch_e_scroll (win(), K_DOWN);
break; break;
case K_ALT_LEFT: case K_ALT_LEFT:
@ -1810,7 +1811,7 @@ bool TViswin::on_key (KEY key)
{ {
if (need_paint_sel()) if (need_paint_sel())
erase_selection(); erase_selection();
// check_link(); // check_link();
update_thumb (origin().x, (++_point.y) - _textrows + 1); update_thumb (origin().x, (++_point.y) - _textrows + 1);
_need_scroll = up; _need_scroll = up;
} }
@ -2001,7 +2002,8 @@ long TViswin::search(const char* txt, int& pos, long from, bool down, bool cs)
} }
int TViswin::replace(long l, const char* txt, int pos, int len) int TViswin::replace(long l, const char* txt, int pos, int len)
{ {
if (l == -1l) return -1;
int ret = _txt.replace(l,txt,pos,len); int ret = _txt.replace(l,txt,pos,len);
if (ret != -1) if (ret != -1)
{ {