*** empty log message ***
git-svn-id: svn://10.65.10.50/trunk@2497 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2a68fcd129
commit
f66055f624
@ -348,8 +348,8 @@ TSpreadsheet::TSpreadsheet(
|
||||
|
||||
RCT rct = resize_rect(x, y, dx, dy, WO_TE, parent);
|
||||
#ifndef XI_FU_MULTIPLE
|
||||
// rct.bottom -= 12 ;
|
||||
// rct.right -= 28;
|
||||
rct.bottom -= 12 ;
|
||||
rct.right -= 28;
|
||||
#endif
|
||||
|
||||
if ((f_width+max_width)*CHARX > rct.right)
|
||||
@ -1777,6 +1777,17 @@ bool TSpreadsheet::notify(int rec, KEY k)
|
||||
return ok;
|
||||
}
|
||||
|
||||
|
||||
HIDDEN void enable_mask_fields(TMask& m, bool on)
|
||||
{
|
||||
for (int i = m.fields()-1; i >= 0; i--)
|
||||
{
|
||||
TMask_field& f = m.fld(i);
|
||||
if (f.dlg() >= FIRST_FIELD && f.enabled_default())
|
||||
f.enable(on);
|
||||
}
|
||||
}
|
||||
|
||||
// Certified 99%
|
||||
#if XVT_OS != XVT_OS_WIN
|
||||
KEY TSpreadsheet::edit(int n, KEY tasto)
|
||||
@ -1819,8 +1830,18 @@ KEY TSpreadsheet::edit(int n, KEY tasto)
|
||||
|
||||
}
|
||||
else
|
||||
k = sheet_mask().run();
|
||||
{
|
||||
if (!active()) // Se lo sheet e' read only ...
|
||||
enable_mask_fields(sheet_mask(), FALSE); // ... disabilita tutti i campi
|
||||
|
||||
k = sheet_mask().run(); // Esegue la maschera dello sheet
|
||||
|
||||
if (!active()) // Se lo sheet e' read only ...
|
||||
enable_mask_fields(sheet_mask(), TRUE); // ... riabilita tutti i campi
|
||||
}
|
||||
|
||||
if (active)
|
||||
{
|
||||
if (k == K_ENTER)
|
||||
{
|
||||
mask2str(n);
|
||||
@ -1842,12 +1863,14 @@ KEY TSpreadsheet::edit(int n, KEY tasto)
|
||||
if (k == K_ESC)
|
||||
{
|
||||
#if XVT_OS == XVT_OS_WIN
|
||||
str2mask(n);
|
||||
str2mask(n); // Ripristina valori precedenti
|
||||
#else
|
||||
if (tasto == K_INS) destroy(n);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return k;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user