Corretto errore MI1036
git-svn-id: svn://10.65.10.50/trunk@2721 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
e4b3803569
commit
9f168594ce
@ -59,7 +59,7 @@ public:
|
|||||||
// @cmember Cerca il successivo elemento che soddisfa la <t OPERATION_FUNCTION>
|
// @cmember Cerca il successivo elemento che soddisfa la <t OPERATION_FUNCTION>
|
||||||
virtual void for_each( OPERATION_FUNCTION );
|
virtual void for_each( OPERATION_FUNCTION );
|
||||||
// @cmember Cerca il successivo elemento che soddisfa la <t OPERATION_FUNCTION>
|
// @cmember Cerca il successivo elemento che soddisfa la <t OPERATION_FUNCTION>
|
||||||
// per ogni elemento di <t CONDITION_FUNCTION>
|
// per ogni elemento di <t CONDITION_FUNCTION>
|
||||||
virtual void for_each_that( OPERATION_FUNCTION, CONDITION_FUNCTION = NULL );
|
virtual void for_each_that( OPERATION_FUNCTION, CONDITION_FUNCTION = NULL );
|
||||||
|
|
||||||
// @cmember Ritorna il puntatore al primo oggetto che soddisfa la condizione
|
// @cmember Ritorna il puntatore al primo oggetto che soddisfa la condizione
|
||||||
@ -256,6 +256,8 @@ public:
|
|||||||
// @cmember Ritorna l'or logico tra due Bit_array modificando l'oggetto corrente
|
// @cmember Ritorna l'or logico tra due Bit_array modificando l'oggetto corrente
|
||||||
TBit_array& operator |=(const TBit_array& b);
|
TBit_array& operator |=(const TBit_array& b);
|
||||||
|
|
||||||
|
// @cmember Ritorna il numero di bit nell'array
|
||||||
|
long items() const { return 8L * _size; }
|
||||||
// @cmember Ritorna la posizione del primo 1 nell'array (-1 se non lo trova)
|
// @cmember Ritorna la posizione del primo 1 nell'array (-1 se non lo trova)
|
||||||
long first_one() const;
|
long first_one() const;
|
||||||
// @cmember Ritorna la posizione dell'ultimo 1 nell'array (-1 se non lo trova)
|
// @cmember Ritorna la posizione dell'ultimo 1 nell'array (-1 se non lo trova)
|
||||||
|
@ -97,7 +97,7 @@ void TSheet::add_button(
|
|||||||
const char* caption, // @parm Testo del bottone da aggiungere
|
const char* caption, // @parm Testo del bottone da aggiungere
|
||||||
KEY key) // @parm Combinazione di tasti corrispondente
|
KEY key) // @parm Combinazione di tasti corrispondente
|
||||||
{
|
{
|
||||||
#if XVT_OS == XVT_OS_WIN
|
#if XVT_OS == XVT_OS_WIN || XVT_OS == XVT_OS_NT
|
||||||
const int BUT_HEIGHT = 2;
|
const int BUT_HEIGHT = 2;
|
||||||
#else
|
#else
|
||||||
const int BUT_HEIGHT = 1;
|
const int BUT_HEIGHT = 1;
|
||||||
@ -439,9 +439,14 @@ void TSheet::check(
|
|||||||
{
|
{
|
||||||
if (on)
|
if (on)
|
||||||
{
|
{
|
||||||
_checked.set(items()-1); // Force the size of Bit_array
|
const long tot = items()-1;
|
||||||
|
_checked.set(tot); // Force the size of Bit_array
|
||||||
_checked.set();
|
_checked.set();
|
||||||
|
|
||||||
|
// Elimina bit in eccesso alla fine dell'array
|
||||||
|
for (long i = _checked.items()-1; i > tot; i--)
|
||||||
|
_checked.reset(i);
|
||||||
|
|
||||||
if (on && _disabled.first_one() >= 0)
|
if (on && _disabled.first_one() >= 0)
|
||||||
{
|
{
|
||||||
for (long i = 0; i < items(); i++)
|
for (long i = 0; i < items(); i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user