Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Bernard Bout
  Where is Bernard Bout?
 Bernard Bout
 To: jtempo
  Where is jtempo?
 San Francisco
Thread ID: 373493 Message ID: 373597 # Views: 52 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Classes and Objects
Date: Sunday, March 24, 2013 2:30:56 AM         

> > Hi! How can implement drag scroll into a container like this with jquery (see demo on http://the-taylors.org/jquery.kinetic/) Thanks in advance!
> I solve this! Try

Syntax error !!

ADD OBJECT form1.container1.text1 AS textbox WITH ;
		Height = 23, ;
		Left = 10, ;
		Top = 10, ;
		Width = 100, ;
		Name = "Text1"

I don't know why you cannot upload the form files itself.

By the way you have not solved this at all. All you are doing is moving the container. The jQ sample you showed moves the contents of the container and pans the image. Also as Paul says it uses acceleration and easing.

If all you need is to move the container then there is no need for all those form variables and mouseup/mousedown code.

Just do this to move the container LIVE not after the move as you show.:

1. New form
2. Add container
3. Container.MouseDown()

If nButton = 1
		This.Left + (bxCoord - Objtoclient(This, 2)) ,;
		This.Top + (nyCoord - Objtoclient(This, 1)))

Anyway here is a sample form and class I made to Pan any image. Just extract the files and run the form. Click and drag to Pan. You can just drop the class on any form and set the image1.picture to your own image and it will work very well.



** If you see someone without a smile, give em one of yours :) **
My Blogyour text here


DRAG SCROLL Posted by jtempo @ 3/22/2013 3:02:53 PM
RE: DRAG SCROLL Posted by Paul Gibson @ 3/22/2013 3:46:28 PM
RE: DRAG SCROLL Posted by jtempo @ 3/22/2013 4:01:16 PM
RE: DRAG SCROLL Posted by llyrad atsituab @ 3/23/2013 2:32:08 AM
RE: DRAG SCROLL Posted by jtempo @ 3/23/2013 1:38:28 PM
RE: DRAG SCROLL Posted by Bernard Bout @ 3/24/2013 2:30:56 AM
RE: DRAG SCROLL Posted by jtempo @ 3/24/2013 6:25:39 PM