Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 1st, 2005, 10:03 PM
Ocarina Ocarina is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 5 Ocarina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 32 sec
Reputation Power: 0
Moving a Shape

I was wondering how I would make it so that when a user enters two integers and hits a button, a Shape would move to that location.

Delphi obviously has a co-ordinate point system, and I figured out how to make the variables that I have coming from the edit boxes to the variables that coorspond with the field that I drew for my shape to move around in.

Basically, I just need to find out how to have an object move to a point, whether by having it animate over or just erase and redraw it somewhere else.

Reply With Quote
  #2  
Old November 2nd, 2005, 11:00 AM
Ocarina Ocarina is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 5 Ocarina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 32 sec
Reputation Power: 0
After a bit more playing around I figured out that the most logical way to do this would be to change the "Left" and "Top" values in the shapes Object Inspector Properties tab.

Still, the problem is, I don't know how to make those properties change wilst the program is running.

Any help will be greatly appreciated.

Reply With Quote
  #3  
Old November 2nd, 2005, 11:22 AM
Ocarina Ocarina is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2005
Posts: 5 Ocarina User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 32 m 32 sec
Reputation Power: 0
Sorry for the triple post, but I figured it out.

After randomly searching through all the functions/properties/etc. one could do with a shape, I ran across Left and Top, which is what I was looking to edit.

The program works now, and it seems I didn't need help anyway.

I think writing everything out helped me though, so thanks anyway!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Moving a Shape


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT