wait cursor su finestra foremost non piu' su taskwin

git-svn-id: svn://10.65.10.50/trunk@843 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1995-01-10 11:44:41 +00:00
parent b082989fc2
commit 38167bd6fa
3 changed files with 9 additions and 5 deletions

View File

@ -637,11 +637,14 @@ bool TApplication::config()
void TApplication::set_cursor(bool w)
{
static int _count = 0;
static int _count = 0;
WINDOW ww = cur_win();
if (ww == NULL_WIN) ww = TASK_WIN;
if (w)
{
if (_count == 0)
::set_cursor(TASK_WIN, CURSOR_WAIT);
::set_cursor(ww, CURSOR_WAIT);
_count++;
}
else
@ -652,7 +655,7 @@ void TApplication::set_cursor(bool w)
yesnofatal_box("end_wait without matching begin_wait");
#endif
if (_count == 0)
::set_cursor(TASK_WIN, CURSOR_ARROW);
::set_cursor(ww, CURSOR_ARROW);
}
}

View File

@ -459,7 +459,7 @@ const char* TPrintrow::row_codified() const
}
last_attr = _attr[i];
}
if (_cols[i] != last_color)
if (_cols[i] != last_color && i < _row.len() - 1)
{
__tmp_string[k++] = '$';
__tmp_string[k++] = '[';

View File

@ -225,7 +225,8 @@ bool TViswin::check_link (TPoint * p)
ttt.restart ();
strcpy (descr, ttt.get ());
strcat (descr, t.get (3));
_linktxt = t.get(3);
_linktxt = t.get(3);
if (_linktxt.len() > 40) _linktxt.cut(40);
if (_multiple)
{
// get all parts of the same color