Correzione MI3381, relativa alla possibilita' di stampare lo

sfondo grafico anche se la fincatura non lo e'. Ora e' possibile
fare le seguenti cose:

Nessuna fincatura + sfondo grafico
fincatura testo   + sfondo grafico

inoltre se e' stata settata la fincatura grafica ma la stampante non
lo permette viene automaticamente settata quella in modo testo.


git-svn-id: svn://10.65.10.50/trunk@4433 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1997-05-28 12:38:08 +00:00
parent d5d5dc3bbe
commit 7b2b367b12
2 changed files with 12 additions and 6 deletions

View File

@ -743,7 +743,8 @@ bool TForm_EC_editor::edit(char s, pagetype p)
r.put("ID",0);
TToken_string t(get_formato_data(),'\n');
t.add(get_formato_numero());
r.put("SPECIAL",t);
if (t.trim().not_empty())
r.put("SPECIAL",t);
if (r.write()!= NOERR) r.rewrite();
}
}
@ -790,8 +791,11 @@ void TForm_EC_editor::print()
pict.y() = _msk->get_int(F_BACKY);
form().offset_y() = _msk->get_int(F_SY);
form().offset_x() = _msk->get_int(F_SX);
form().set_mode((bkg_mode)_msk->get_int(F_FINK));
if (form().mode() == none) gen_fink = FALSE;
int fnk_mode = _msk->get_int(F_FINK);
if (fnk_mode == 0)
gen_fink = FALSE;
else
form().set_fink_mode(fnk_mode == 1 ? FALSE : TRUE);
}
// Schiaffa dentro le stringhe di esempio per ogni campo che non ha prompt o riferimenti sul file
// per i campi memo si copia _memo in _prompt
@ -866,6 +870,8 @@ bool TForm_EC_editor::ask_profile()
}
if (k == K_ENTER)
{
set_formato_data("");
set_formato_numero("");
check_form();
set_form(new TForm_EC(fform, (fcode!=0) ? cod : "", extra() ? 2 :1, fdesc));

View File

@ -75,9 +75,9 @@ END
LIST F_FINK 2 10
BEGIN
PROMPT 1 7 "Fincatura "
ITEM "0|Nessuna" MESSAGE ENABLE,5@
ITEM "1|Testo" MESSAGE CLEAR,5@
ITEM "2|Grafica" MESSAGE ENABLE,5@
ITEM "0|Nessuna"
ITEM "1|Testo"
ITEM "2|Grafica"
END
GROUPBOX DLG_NULL 45 5