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 <config.h>
#include <currency.h>
#include <dongle.h>
#include <execp.h>
#include <mask.h>
#include <prefix.h>
#include <printer.h>
#include <relation.h>
#include <utility.h>
@ -19,9 +18,10 @@
bool sys_dll_changed()
{
TString_array list;
list_files("*.ex_", list);
list_files("*.dl_", list);
return list.items() > 0;
int k = list_files("*.dl_", list);
if (k == 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);
if (install_app && sys_dll_changed())
dispatch_e_char(cur_win(), K_QUIT);
//main_app().stop_run();
printer_destroy(); // Forza rilettura parametri della stampante
}
return ok;

View File

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

View File

@ -725,52 +725,57 @@ void TReport_window::handler(WINDOW win, EVENT* ep)
{
case E_MOUSE_DOWN:
_pt_click = ep->v.mouse.where;
if (ep->v.mouse.button == 0)
switch (ep->v.mouse.button)
{
const TPoint pt = dev2log(_pt_click);
TRectangle rct;
int full = get_selection_rect(rct);
if (!full || !rct.contains(pt))
case 0:
{
if (full && !ep->v.mouse.control)
clear_selection();
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))
const TPoint pt = dev2log(_pt_click);
TRectangle rct;
int full = get_selection_rect(rct);
if (!full || !rct.contains(pt))
{
_dragging = 3; // Trascinamento rettangolo elastico
XinCursor hand = xi_get_pref(XI_PREF_SIZE_CURSOR_RID);
xvt_win_set_cursor(win, (CURSOR)hand);
if (full && !ep->v.mouse.control)
clear_selection();
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
{
_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);
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
{
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
{
break;
case 1:
popup_menu();
break;
default:
break;
}
owner().mask().notify_focus_field(owner().dlg());
break;