示例#1
0
void TGroup::shutDown()
{
    TView* p = last;
    if( p != 0 )
    {
        do {
        p->hide();
        p = p->prev();
    } while (p != last);

        do  {
            TView* T = p->prev();
            destroy( p );
            p = T;
        } while( last != 0 );
    }
    freeBuffer();
    current = 0;
    TView::shutDown();
}
示例#2
0
void TGroup::setData(void *rec) {
   size_t i = 0;
   if (last!= 0) {
      TView *v = last;
      do  {
         v->setData((char *)rec + i);
         i += v->dataSize();
         v = v->prev();
      } while (v != last);
   }
}
示例#3
0
void TGroup::getData(void *rec)
{
    ushort i = 0;
    if (last != 0 )
        {
        TView* v = last;
        do  {
            v->getData( ((char *)rec) + i );
            i += v->dataSize();
            v = v->prev();
            } while( v != last );
        }
}
示例#4
0
void TGroup::shutDown() {
   /* looks like this is a fix from someone!
      No such string both in TV 1.0 & 2.0. Let it stay here for a while */
   resetCurrent();  

   TView *p = last;
   if (p != 0) {
      do {
         p->hide();
         p = p->prev();
      } while (p != last);

      do  {
         TView *T = p->prev();
         destroy(p);
         p = T;
      } while (last != 0);
   }
   freeBuffer();
   current = 0;
   TView::shutDown();
}