Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag image automatically drag form
Message
De
13/09/2007 05:59:19
 
 
À
13/09/2007 03:27:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01254056
Message ID:
01254068
Vues:
11
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform