Oct 14, 2010 at 5:54am UTC
Im trying to create a countdown function after I drew the numbers using DrawLine from 9 to 0. The numbers are all on the same location on form1. I want them to disapear as they are being counteddown.
Any suggestions??
MY PROJECT WAS CREATED UNDER THE WINDOWS FORM APPLICATION.
HERE'S MY CODE:
void drawHorizontal(int column, int row, int length)
{
Graphics^ dNumber = this->CreateGraphics();
Pen^ pNumber = gcnew Pen (Color::Yellow);
dNumber-> DrawLine (pNumber, column, row, column+length, row );
}
void drawVertical(int column, int row, int length)
{
Graphics^ dNumber = this->CreateGraphics();
Pen^ pNumber = gcnew Pen (Color::Yellow);
dNumber-> DrawLine (pNumber, column, row, column, row+length );
}
void filipesDraws0 ()
{
drawVertical (300, 50, 80);
drawVertical (301, 50, 80);
drawVertical (302, 50, 80);
drawHorizontal (300, 50, 40);
drawHorizontal (300, 51, 40);
drawHorizontal (300, 52, 40);
drawVertical (340, 50, 80);
drawVertical (341, 50, 80);
drawVertical (342, 50, 80);
drawHorizontal (300, 130, 40);
drawHorizontal (300, 131, 40);
drawHorizontal (300, 132, 40);
}
that's how i drew my zero, all the other numbers were drawn on the same location, above the zero. i want the to disapear as a countdown.
Any help please?