|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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! ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > Moving a Shape |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|