Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
	sheet.cpp : corretta funzione di inserimento in presenza di righe disabilitate
		    corretta funzione di destroy
	mask.cpp  : corretto commento alla funzione enable


git-svn-id: svn://10.65.10.50/trunk@6180 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1998-02-13 08:08:54 +00:00
parent cacfa4c1e1
commit 359a923b62
2 changed files with 10 additions and 3 deletions

View File

@ -1130,7 +1130,7 @@ void TMask::activate(
// @mfunc Abilita/disabilita un campo
void TMask::enable(
short fld_id, // @parm Identificatore del campo da abilitare (-1 tutti i campi)
short fld_id, // @parm Identificatore del campo da abilitare (0 tutti i campi, <0 id gruppo)
bool on) // @parm Indica l'operazione da svolgere sul campo:
//
// @flag TRUE | Abilita il campo (default)

View File

@ -1197,11 +1197,11 @@ TArray_sheet::TArray_sheet(short x, short y, short dx, short dy, const char* cap
}
}
// Certified 90%
// Certified 99%
bool TArray_sheet::destroy(int i)
{
uncheck(-1);
enable(-1);
enable_row(-1);
return _data.destroy(i, TRUE);
}
@ -1230,6 +1230,13 @@ long TArray_sheet::add(TToken_string* s)
long TArray_sheet::insert(const TToken_string& s, long n)
{
_data.insert(s, (int)n);
const int maxrows=int(items());
for (int r = maxrows-1; r >n ; r--)
{
const bool enab= row_enabled(r);
enable_row(r,row_enabled(r+1));
enable_row(r+1,enab);
}
return n;
}