procedure mousedown LPARAMETERS nButton, nShift, nXCoord, nYCoord Local lnOldPos, ; lnAvgCharWidth, ; lnMinPos, ; lnMaxPos, ; lnCurPos, ; lnParentLeft lnAvgCharheight = FONTMETRIC(1) lnAvgCharwidth = FONTMETRIC(6) lnParentLeft = this.otimeline.top lnMinPos = (this.width-This.otimeline.width-2) lnMaxPos = 3 lnCurPos = this.otimeline.top lnCurPosy = Mrow(thisform.name, 3) lnCurPosx = Mcol(thisform.name, 3) lnCurINIy = Mrow(thisform.name, 3) lnCurINIx = Mcol(thisform.name, 3) lnrowini = this.otimeline.top lncolini = this.otimeline.left Do WHILE MDOWN() This.otimeline.Move(MAX(lnMinPos, MIN(lnCurPosx, lnMaxPos)),lnParentLeft) lnCurPosx = lncolini + ( Mcol(thisform.name, 3) - lnCurINIx ) Enddo endproc