Patch level : 10.0

Files correlati     : ba8
Ricompilazione Demo : [ ]
Commento            :
Corretta gestione maschera principale


git-svn-id: svn://10.65.10.50/trunk@16482 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2008-04-08 12:55:58 +00:00
parent 72dde0c4d6
commit 06c8ecd373
3 changed files with 41 additions and 26 deletions

View File

@ -421,7 +421,7 @@ bool TReport_query_mask::on_field_event(TOperable_field& o, TField_event e, long
} }
else else
{ {
if (sql.find("SELECT ") >= 0) if (sql.find("SELECT ") >= 0 || sql.starts_with("USE "))
warning_box(TR("Nessuna riga risultato")); warning_box(TR("Nessuna riga risultato"));
} }
delete rex; delete rex;
@ -526,7 +526,7 @@ bool TReport_mask::get_rep_path(TFilename& path) const
bool TReport_mask::save_report() bool TReport_mask::save_report()
{ {
bool ok = _curr_report.not_empty(); bool ok = _curr_report.full();
if (!ok) if (!ok)
ok = get_rep_path(_curr_report); ok = get_rep_path(_curr_report);
if (!ok) if (!ok)
@ -587,6 +587,7 @@ bool TReport_mask::load_report()
_tree.goto_node('B', 1); _tree.goto_node('B', 1);
sections.select_current(); sections.select_current();
select_section(); select_section();
xvt_notebk_set_tab_title(notebook(), 0, path); // Mette il titolo nel tab button
} }
} }

View File

@ -1,10 +1,10 @@
#include "ba8300.h" #include "ba8300.h"
TOOLBAR "" 0 -1 0 1 TOOLBAR "" 0 -1 0 0
STRING F_CODICE 128 24 STRING F_CODICE 256 24
BEGIN BEGIN
PROMPT 1 -11 "" PROMPT 1 0 ""
RSELECT "" RSELECT ""
WARNING "E' necessario specificare il codice" WARNING "E' necessario specificare il codice"
CHECKTYPE REQUIRED CHECKTYPE REQUIRED
@ -12,46 +12,60 @@ END
STRING F_DESCR 50 46 STRING F_DESCR 50 46
BEGIN BEGIN
PROMPT 30 -11 "" PROMPT 30 0 ""
END END
ENDPAGE ENDPAGE
TOOLBAR "" 0 0 0 2 TOOLBAR "" 0 0 0 2
BUTTON DLG_SAVEREC 10 2
BEGIN
PROMPT -16 -1 "Salva"
PICTURE BMP_SAVEREC
END
BUTTON DLG_NEWREC 10 2 BUTTON DLG_NEWREC 10 2
BEGIN BEGIN
PROMPT -26 -1 "Nuovo" PROMPT 1 0 "Nuovo"
PICTURE BMP_NEWREC PICTURE BMP_NEWREC
END END
BUTTON DLG_DELREC 10 2
BEGIN
PROMPT -36 -1 "Elimina"
PICTURE BMP_DELREC
END
BUTTON DLG_FINDREC 10 2 BUTTON DLG_FINDREC 10 2
BEGIN BEGIN
PROMPT -46 -1 "Ricerca" PROMPT 2 0 "Carica"
PICTURE 166 PICTURE 166
END END
BUTTON DLG_SAVEREC 10 2
BEGIN
PROMPT 3 0 "Salva"
PICTURE BMP_SAVEREC
END
BUTTON DLG_DELREC 10 2
BEGIN
PROMPT 4 0 "Elimina"
PICTURE BMP_DELREC
END
BUTTON DLG_PRINT 10 2 BUTTON DLG_PRINT 10 2
BEGIN BEGIN
PROMPT -56 -1 "Stampa" PROMPT 5 0 "Stampa"
PICTURE BMP_PRINT PICTURE BMP_PRINT
END END
BUTTON DLG_INFO 2 2
BEGIN
PROMPT 9 1 "Informazioni"
MESSAGE EXIT,K_F2
PICTURE 162
END
BUTTON DLG_HELP 2 2
BEGIN
PROMPT 10 1 "Help"
MESSAGE EXIT,K_F1
PICTURE 163
END
BUTTON DLG_QUIT 10 2 BUTTON DLG_QUIT 10 2
BEGIN BEGIN
PROMPT -66 -1 "" PROMPT 8 0 ""
END END
ENDPAGE ENDPAGE

View File

@ -16,18 +16,18 @@ END
BUTTON F_IMPORT_QRY 15 2 BUTTON F_IMPORT_QRY 15 2
BEGIN BEGIN
PROMPT -35 -11 "Importa" PROMPT -35 -11 "Importa"
PICTURE 166 PICTURE 150
END END
BUTTON F_SHOW_QRY 15 2 BUTTON F_SHOW_QRY 15 2
BEGIN BEGIN
PROMPT -45 -11 "~Edit" PROMPT -45 -11 "Elabora"
PICTURE BMP_EDIT PICTURE BMP_ELABORA
END END
BUTTON DLG_CANCEL 15 2 BUTTON DLG_CANCEL 15 2
BEGIN BEGIN
PROMPT -55 -11 "" PROMPT -55 -11 "Annulla"
END END
ENDPAGE ENDPAGE