Patch level : 2.0 540

Files correlati     : ba0.exe e tuute le stampe
Ricompilazione Demo : [ ]
Commento            :

EP20101
IMPOSTO CURRIER NEW 7 E REGISTRO. RICHIAMO LA MASCHERA IMPOSTAZIONE
STAMPANTE MI RIPROPONE CURRIER NEW 10


git-svn-id: svn://10.65.10.50/trunk@11355 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-07-25 14:53:55 +00:00
parent f2f3964a40
commit 8ee4750f53
2 changed files with 17 additions and 16 deletions

@ -181,15 +181,6 @@ TPrinter_setup_mask::TPrinter_setup_mask()
_skip_events = TRUE;
TList_field& plst = (TList_field&)field (MSK_PRINTERS);
plst.replace_items(pn2, pn2); // Genera printer list
set(MSK_PRINTERS, pr._prname); // Genera font e size list
set(MSK_FONT, _font = pr._fontname);
set(MSK_SIZE, pr._ch_size);
set(MSK_LINES, pr._lines_per_inch);
set(MSK_ISGRAPHICS, pr._isgraphics ? "X" : "");
if (pr._printertype == fileprinter)
set (MSK_TYPE, "1");
else if (pr._printertype == screenvis)
@ -197,9 +188,19 @@ TPrinter_setup_mask::TPrinter_setup_mask()
else
set(MSK_TYPE, "0");
TList_field& plst = (TList_field&)field (MSK_PRINTERS);
plst.replace_items(pn2, pn2); // Genera printer list
set(MSK_PRINTERS, pr._prname);
_font = pr._fontname;
fill_font_list();
fill_size_list();
set(MSK_FONT, _font); // Fare solo quando la lista e' piena
set(MSK_SIZE, pr._ch_size); // Fare solo quando la lista e' piena
set(MSK_LINES, pr._lines_per_inch);
set(MSK_ISGRAPHICS, pr._isgraphics ? "X" : "");
_skip_events = FALSE;
}

@ -269,12 +269,13 @@ void TRelation_application::set_toolbar()
{
_mask->fld(pos).enable(_lnflag == 0);
pos = _mask->id2pos(DLG_FIRSTREC);
if (pos >= 0)
_mask->fld(pos).enable(_lnflag == 0 && _first > 0);
pos = _mask->id2pos(DLG_PREVREC);
const long recno = get_relation()->lfile().recno();
const bool enable_next_prev = _mask->edit_mode();
pos = _mask->id2pos(DLG_FIRSTREC);
if (pos >= 0)
_mask->fld(pos).enable(_lnflag == 0 && (enable_next_prev ? _first != recno : _first > 0));
pos = _mask->id2pos(DLG_PREVREC);
if (pos >= 0)
_mask->fld(pos).enable(_lnflag == 0 && enable_next_prev && _first > 0 && _first != recno);
pos = _mask->id2pos(DLG_NEXTREC);
@ -282,7 +283,7 @@ void TRelation_application::set_toolbar()
_mask->fld(pos).enable(_lnflag == 0 && enable_next_prev && _last > 0 && _last != recno);
pos = _mask->id2pos(DLG_LASTREC);
if (pos >= 0)
_mask->fld(pos).enable(_lnflag == 0 && _last > 0);
_mask->fld(pos).enable(_lnflag == 0 && (enable_next_prev ? _last != recno : _last > 0));
}
pos = _mask->id2pos(DLG_NEWREC);
@ -1154,7 +1155,7 @@ bool TRelation_application::relation_remove()
TRelation& r = *get_relation();
r.restore_status();
if (protected_record(r))
return message_box("Elemento non eliminabile");
return message_box(TR("Elemento non eliminabile"));
if (_curr_transaction == TRANSACTION_DELETE || yesno_box(TR("Confermare l'eliminazione")))
{
@ -1292,7 +1293,6 @@ void TRelation_application::main_loop()
_curr_transaction = TRANSACTION_INSERT;
insert_mode();
}
}
else
{