//--------------------------------------------------------------------------- #include #pragma hdrstop #include "grCell.h" #include "Unit1.h" #include "globals.h" //--------------------------------------------------------------------------- #pragma package(smart_init) GrCell::GrCell(pAuditory pa, int xx,int yy) : TCell(pa) { x=xx; y=yy; }; void GrCell::show() { if(isStanding()) Form1->PaintBox1->Canvas->Pen->Color=(TColor)STANDINGCELLBORDER; else Form1->PaintBox1->Canvas->Pen->Color=(TColor)SITTINGCELLBORDER; Form1->PaintBox1->Canvas->Brush->Color=COLOR(applaus); Form1->PaintBox1->Canvas->Rectangle(CELLRECT(x,y)); // AnsiString *ps=new AnsiString((double)getApplaus()); // Form1->PaintBox1->Canvas->TextOut(CELLLeftUp(x,y),*ps); // delete ps; };