Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MOving an object in real time in Forms 1

Status
Not open for further replies.

RezaNana

Programmer
Dec 18, 2002
80
MY
hi mate!
i wanna know does the GRID X and GRID Y calculation (GX x GY) will move an obeject? It goes something like this:
i named an object "battleship". so the codes will go like this..
Form -on current
if time=time()+0.01 then
me.battleship.GridX= me.userGridX.Value
me.battleship.GridY=me.UsergridY.value
end if
end sub

meaning that the the code will updates the form evey 1 seconds(?), and it will move the battleship according to the userGridx and UserGridY value (which the user will enter).
Is it possible?? hmmm..(i doubt it!)
p/s: pls remember, i just wanna know wether the combination of grid x and grid y in codes can move an object or not.
Thanks luv
 
You can move object with code in a manner similar to your code, but you need to use the form timer event to drive it along.
I have seen demos of butterflies going across a form by using a series of different shots of wing openings and the timer opening and closing the various shots and the location being incremented bt the timer.

Hope this helps!

Frank J Hill
FHS Services Ltd.
frank@fhsservices.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top