•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 456,529 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,754 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser: Programming Forums
Views: 2056 | Replies: 0
![]() |
•
•
Join Date: Jul 2004
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
I want to change the direction of movement of a shape (Circle) on a Form, using up,down,left,right, buttons placed within a panel also on the Form.
The form contains a shape(Circle) and a TTimer component.
I can get the Circle to move across the Form using :
Circle->Left = Circle->Left + 20; for the OnTimer event, but I now want to change the direction of the Circle using the buttons.
I know I will have to enter similar code in each of the ButtonClick events and I have the feeling that additional code will be required in the OnTimer event handler, but I can't work out what it is.
Please reply to my email with any help.
Regards,
Maineboy.
The form contains a shape(Circle) and a TTimer component.
I can get the Circle to move across the Form using :
Circle->Left = Circle->Left + 20; for the OnTimer event, but I now want to change the direction of the Circle using the buttons.
I know I will have to enter similar code in each of the ButtonClick events and I have the feeling that additional code will be required in the OnTimer event handler, but I can't work out what it is.
Please reply to my email with any help.
Regards,
Maineboy.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Modify Record script doesn't add/change info (PHP)
- Photoshop: Aqua Button (Graphics and Multimedia)
- Change IE "Action Canceled" page?? (Web Browsers)
- How can be a commond button's caption changed (Visual Basic 4 / 5 / 6)
- Forms - Print Button (HTML and CSS)
- Can't access network (Networking Hardware Configuration)
- Refresh Form to Display changes (MySQL)
- "Page cannot be displayed" -- I FOUND IT!!!!!!!!!! (Web Browsers)
- change statement (JSP)
Other Threads in the C Forum
- Previous Thread: Am not getting the right answers
- Next Thread: Commission or Brokerage Problem

Linear Mode