Patch level :10.0

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
aggiunta gestione bottone preview alle maschere di report; è necessario impostare 'A' come acceleratore


git-svn-id: svn://10.65.10.50/trunk@19524 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-10-27 15:28:48 +00:00
parent a9f59faf73
commit 5c68b99717

View File

@ -1,4 +1,5 @@
#include <colors.h>
#include <defmask.h>
#include <expr.h>
#include <printer.h>
#include <recarray.h>
@ -2285,7 +2286,7 @@ bool TReport::execute_prescript()
bool bAsk = true;
// Script dei poveri: lancia la maschera associata al report
if (use_mask())
if (use_mask())
{
TFilename msk = _path.name(); msk.ext("msk");
if (msk.custom_path())
@ -2301,7 +2302,6 @@ bool TReport::execute_prescript()
}
}
if (bAsk)
{
// Script dei poverissimi: chiede le eventuali variabili
@ -2702,6 +2702,21 @@ KEY TReport::run_form(const TString& maskname)
{
TMask m(maskname);
key = run_form(m);
switch (key)
{
case K_ENTER:
if (m.id2pos(DLG_PREVIEW) >= 0)
printer().set_printtype(winprinter);
break;
case 'A': //anteprima
printer().set_printtype(screenvis);
break;
case 'P': //pdf
printer().set_printtype(acrobatprinter);
break;
default:
break;
}
}
return key;