/*
        IntLabel.cpp

        V1.00 - 121296  Kimmo Teräväinen
        -----   ------  ----------------
        Look   IntLabel.h
*/

#include "intlabel.h"
#include <stdio.h>

extern UBYTE pens[];

void TIntLabel::Update(RastPort *rp)
{
#if 1
  char text[7];
  int len=0;
  cPanel::Update(rp);
  sprintf(text,"%ld",(long)val);
  while(text[len]) len++;
  ::Move(rp,Left()+8,Top()+(Height()-8)/2+rp->TxBaseline);
  SetBPen(rp,pens[0]);
  SetAPen(rp,pens[1]); SetDrMd(rp,JAM1);
  Text(rp,(UBYTE*)text,len);
#endif
}
