Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy,paste placement
Message
 
 
À
28/05/2003 11:22:16
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00793536
Message ID:
00793795
Vues:
24
Mike,

Write your own little builder to do it. After the paste the objects will all be available to aselobj() and you can iterate them changing the .Left and .Top by parameters you send to the builder. If you've never written one there's a coupld of quick samples over on my website.
function MyPasteMover( lnHorizontal, lnVertical )
n = aselobj( laObjects )
for i = 1 to n
   with laObjects[i]
      .Left = .Left + lnHorizontal
      .Top = .Top + lnVertical
   endwith
endfor
return
So after the paste, in the command window: MyPasteMover( 10, 20 )

>When I copy a control from a form and paste it onto the same form, the new control is placed a little down and to the right of the current control. Is there any way to alter how far down and how far over?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform