Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag image automatically drag form
Message
From
13/09/2007 05:59:19
 
 
To
13/09/2007 03:27:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01254056
Message ID:
01254068
Views:
13
>hi all
>
>how do i drag image and automaticlly drag form in vfp...
>any idea ?

If you mean that when you drag the image in the form, the form moves with it, as if using the title bar then:

Look at the DragDrop, DragOver, MouseMove, MouseDown events and methods in Help.
You can read the X and Y co-ords of the image as it moves and translate these to the form's Top and Left properties.

Having said this, I've never doen that myself but that's where I'd start to look.

I don't know what version of VFP you have but there is an moverlist class somewhere, such as:

c:\program files\microsoft visual foxpro 7\samples\classes\samples.vcx

This has an example of dragging and dropping items in a list that you may be able to adapt to your purpose.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform