I’m use the second code for drawing circle.
1. TInt x = 0, y = 0;
2. for(x = 0; x < 9; x++){
3. x +=17;
4. y+= 17;
5. for(y = 0; y < 13; y++){
6. ptrBitmapContext -> DrawEllipse(iRect);
7. }
8. iRect.SetRect(TPoint(x, y), TSize(16, 16));
9. }
And I’m having other circle on top, which can control. When often and quickly pressing the same button (for example LEFT) and STOP-pressing this button still move this circle in the left. When remove 6th line from the code and leave only circle on top. It moves good when pressing button (for example LEFT) and release it after several presses.
How I can make, that when stop pressing button and stop moving top circle?

Sorry my English!