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
This commit is contained in:
parent
899cf84309
commit
01ed9cb6c4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user