Patch level : 2.1 78

Files correlati     : ba0.exe
Ricompilazione Demo : [ ]
Commento            :

AO21002
Se da questa videata vado su File - Impostazione Stampante e cambio le impostazioni,
non ne tiene conto in quanto se esco dalla videata vedo che c'è impostata ancora
la vecchia stampante. Nb ERA COSI ANCHE SULLA 1,07


git-svn-id: svn://10.65.10.50/trunk@12221 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2004-06-29 15:06:44 +00:00
parent 798e8cfb17
commit 4f6e201dd2
3 changed files with 52 additions and 44 deletions

View File

@ -1,10 +1,9 @@
#include <applicat.h> #include <applicat.h>
#include <config.h>
#include <currency.h> #include <currency.h>
#include <dongle.h> #include <dongle.h>
#include <execp.h> #include <execp.h>
#include <mask.h> #include <mask.h>
#include <prefix.h> #include <printer.h>
#include <relation.h> #include <relation.h>
#include <utility.h> #include <utility.h>
@ -19,9 +18,10 @@
bool sys_dll_changed() bool sys_dll_changed()
{ {
TString_array list; TString_array list;
list_files("*.ex_", list); int k = list_files("*.dl_", list);
list_files("*.dl_", list); if (k == 0)
return list.items() > 0; k = list_files("*.ex_", list);
return k > 0;
} }
/////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////
@ -319,7 +319,8 @@ bool TMenuitem::perform_program() const
const bool install_app = _action.starts_with("ba1 -6", TRUE); const bool install_app = _action.starts_with("ba1 -6", TRUE);
if (install_app && sys_dll_changed()) if (install_app && sys_dll_changed())
dispatch_e_char(cur_win(), K_QUIT); dispatch_e_char(cur_win(), K_QUIT);
//main_app().stop_run();
printer_destroy(); // Forza rilettura parametri della stampante
} }
return ok; return ok;

View File

@ -149,7 +149,7 @@ ENDMASK
PAGE "Proprieta'" -1 -1 70 10 PAGE "Proprieta'" -1 -1 70 10
LIST 101 1 10 LIST 101 1 16
BEGIN BEGIN
PROMPT 1 1 "" PROMPT 1 1 ""
ITEM " |Azione" ITEM " |Azione"
@ -160,6 +160,8 @@ BEGIN
MESSAGE DISABLE,102|ENABLE,103|"Lettura",102 MESSAGE DISABLE,102|ENABLE,103|"Lettura",102
ITEM "S|Scrittura" ITEM "S|Scrittura"
MESSAGE DISABLE,102|ENABLE,103|"Scrittura",102 MESSAGE DISABLE,102|ENABLE,103|"Scrittura",102
ITEM "E|Eliminazione"
MESSAGE DISABLE,102|ENABLE,103|"Eliminazione",102
END END
STRING 102 16 STRING 102 16

View File

@ -725,52 +725,57 @@ void TReport_window::handler(WINDOW win, EVENT* ep)
{ {
case E_MOUSE_DOWN: case E_MOUSE_DOWN:
_pt_click = ep->v.mouse.where; _pt_click = ep->v.mouse.where;
if (ep->v.mouse.button == 0) switch (ep->v.mouse.button)
{ {
const TPoint pt = dev2log(_pt_click); case 0:
TRectangle rct;
int full = get_selection_rect(rct);
if (!full || !rct.contains(pt))
{ {
if (full && !ep->v.mouse.control) const TPoint pt = dev2log(_pt_click);
clear_selection(); TRectangle rct;
pick(pt); int full = get_selection_rect(rct);
full = get_selection_rect(rct); if (!full || !rct.contains(pt))
}
if (full > 0)
{
TWindow::log2dev(rct, _rct_drag);
if (full == 1 && test_corner(_rct_drag, ep->v.mouse.where, _pt_drag_offset))
{ {
_dragging = 3; // Trascinamento rettangolo elastico if (full && !ep->v.mouse.control)
XinCursor hand = xi_get_pref(XI_PREF_SIZE_CURSOR_RID); clear_selection();
xvt_win_set_cursor(win, (CURSOR)hand); pick(pt);
full = get_selection_rect(rct);
}
if (full > 0)
{
TWindow::log2dev(rct, _rct_drag);
if (full == 1 && test_corner(_rct_drag, ep->v.mouse.where, _pt_drag_offset))
{
_dragging = 3; // Trascinamento rettangolo elastico
XinCursor hand = xi_get_pref(XI_PREF_SIZE_CURSOR_RID);
xvt_win_set_cursor(win, (CURSOR)hand);
}
else
{
_pt_drag_offset.h = ep->v.mouse.where.h - _rct_drag.left;
_pt_drag_offset.v = ep->v.mouse.where.v - _rct_drag.top;
_dragging = 2; // Trascinamento rettangolo fisso
XinCursor hand = xi_get_pref(XI_PREF_HAND_CURSOR_RID);
xvt_win_set_cursor(win, (CURSOR)hand);
}
} }
else else
{ {
_pt_drag_offset.h = ep->v.mouse.where.h - _rct_drag.left; const PNT& pnt = ep->v.mouse.where;
_pt_drag_offset.v = ep->v.mouse.where.v - _rct_drag.top; xvt_rect_set(&_rct_drag, pnt.h, pnt.v, pnt.h, pnt.v);
_dragging = 2; // Trascinamento rettangolo fisso _pt_drag_offset.h = _pt_drag_offset.v = 0;
XinCursor hand = xi_get_pref(XI_PREF_HAND_CURSOR_RID); _dragging = 1; // Trascinamento rettangolo di selezione
xvt_win_set_cursor(win, (CURSOR)hand);
} }
_pt_drag_start.x = rct.left();
_pt_drag_start.y = rct.top();
draw_dragster();
xvt_win_trap_pointer(win);
} }
else break;
{ case 1:
const PNT& pnt = ep->v.mouse.where;
xvt_rect_set(&_rct_drag, pnt.h, pnt.v, pnt.h, pnt.v);
_pt_drag_offset.h = _pt_drag_offset.v = 0;
_dragging = 1; // Trascinamento rettangolo di selezione
}
_pt_drag_start.x = rct.left();
_pt_drag_start.y = rct.top();
draw_dragster();
xvt_win_trap_pointer(win);
}
else
{
popup_menu(); popup_menu();
break;
default:
break;
} }
owner().mask().notify_focus_field(owner().dlg()); owner().mask().notify_focus_field(owner().dlg());
break; break;