maskfld.cpp Corretta on_key dei listbox

printwin.cpp   Corretta gestione righe/66 della stampante tty


git-svn-id: svn://10.65.10.50/trunk@3346 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-08-08 15:56:38 +00:00
parent 9c9726be6c
commit a33589e81b
2 changed files with 8 additions and 11 deletions

View File

@ -3727,10 +3727,10 @@ bool TList_field::on_key(KEY key)
{
get_window_data();
set_dirty();
on_hit();
return on_hit();
}
else
if (key == K_TAB || key == K_ENTER)
if (to_check(key, TRUE))
{
bool ok = TRUE;
if (validate_func() >= 0)
@ -3742,9 +3742,6 @@ bool TList_field::on_key(KEY key)
return error_box(get_warning());
}
}
ok = handler(key);
if (!ok)
return FALSE;
}
else
if (key == K_F2)

View File

@ -216,8 +216,8 @@ void TPrintwin::paint_row(long j)
// Questa e' la patch per TTY.DRV.
if (j > 0 && (j % _realformlen) == 0)
{
TString s(512);
s << "\015" << _txt.line(j-1) << '\n';
TString s(516);
s << '\r' << _txt.line(j-1) << "\n\r";
s << _txt.line(j);
xvt_dwin_draw_text(win(), 0, y, (char*)(const char*)s, -1);
}