RE:" THE BOUNCING BALL in C++"

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2007
Posts: 2
Reputation: lucamarcus is an unknown quantity at this point 
Solved Threads: 0
lucamarcus lucamarcus is offline Offline
Newbie Poster

RE:" THE BOUNCING BALL in C++"

 
0
  #1
Oct 20th, 2007
Am a new c++ programmer.

I refer to the code " Bouncing Ball" which is a GUI, now there is a rectangle created, i managed to change the color the rectangle in the main window and what my may problem is how to make the rectangle fixed and not only increase to be a full rectangle after the ball has hit both ends, how do i achieve that?

Secondly, i would love to then after making a 'fixed' rectangle, i would like to make the ball change color as it hits one side of the rectangle and change back to the original color as its starts coming back and approaches the other side and again change color as it hits the other side and change back again as it approaches the other side and keep repeating this cycle...

Basically I need the rectangle to be fully drawn or fixed EVEN before the ball starts moving and then the change of colors issue.

I have attached the code and the changes i made!

<snipped email>
Last edited by Ancient Dragon; Oct 20th, 2007 at 8:00 pm. Reason: snipped email
Attached Files
File Type: txt moving ball.txt (2.9 KB, 33 views)
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC