** test.prg
of = CREATEOBJECT("form1")
of.show(1)
DEFINE CLASS form1 AS form
ADD OBJECT shape1 AS shape WITH Top=10,Left=10,Height=70,Width=70,Curvature=99
ADD OBJECT timer1 AS timer WITH Interval=500
mTop = 0
mLeft = 0
PROCEDURE init
this.mTop = this.Height - this.shape1.Height
this.mLeft = this.Width - this.shape1.Width
ENDPROC
PROCEDURE timer1.Timer
thisform.shape1.top = INT(thisform.mTop * RAND())
thisform.shape1.left = INT(thisform.mLeft * RAND())
ENDPROC
ENDDEFINE