From 01ed9cb6c4744acd8d904d054e1cb94d740f04ac Mon Sep 17 00:00:00 2001 From: ale Date: Wed, 10 Jul 1996 13:08:07 +0000 Subject: [PATCH] Modifica all'autodimensionamento delle progind in base al messaggio che devono contenere git-svn-id: svn://10.65.10.50/trunk@3178 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/progind.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/progind.cpp b/include/progind.cpp index de331ed0a..a8364f413 100755 --- a/include/progind.cpp +++ b/include/progind.cpp @@ -28,9 +28,8 @@ TIndwin::TIndwin(long max, const char* txt, bool cancel, bool bar, int div) word maxlen = div; const word lines = measure_text(testo, maxlen); - int ver = lines+2; - - int hor = maxlen+2; if (hor > 78) hor = 78; + int ver = lines+3; + int hor = maxlen+3; if (hor > 78) hor = 78; if (bar) { @@ -41,7 +40,7 @@ TIndwin::TIndwin(long max, const char* txt, bool cancel, bool bar, int div) set_win(create_interface(TASK_WIN, -1, -1, hor, ver, TITLE_TEXT, this, FALSE)); - _text = new TMultiline_control(win(), DLG_NULL, 1, 1, hor-2, lines, 512, "CD", ""); + _text = new TMultiline_control(win(), DLG_NULL, 1, 1, hor-2, lines+1, 512, "CD", ""); testo.replace('\n', '\r'); _text->set_caption(testo);