Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy,paste placement
Message
De
28/05/2003 14:04:31
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00793536
Message ID:
00793643
Vues:
28
That gave me an idea. I could use something similar to undo VFP's paste positioning. Merci bien!

>Select your controls in design mode and run this prg :-)
>
>
>*spacing.prg
>
>=ASELOBJ(selection)
>oldError = ON("ERROR")
>ON ERROR *
>IF TYPE("ALEN(selection,1)") = "N"
>	MyTop=selection(1).top
>	MyLeft=selection(1).left
>	FOR x = 2 TO ALEN(selection,1)
>		MyTop=MyTop+25  && hardcoded value!
>		selection(x).top=MyTop
>		selection(x).left=MyLeft
>	ENDFOR	
>ENDIF
>ON ERROR &oldError
>
>RETURN
>
>
>
>>Nope. It isn't easy to understand how much it increases or decreases the spacing.
>>
>>>>Hi all
>>>>
>>>>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?
>>>
>>>You cannot do this directly.
>>>
>>>But you can:
>>>*place the controls roughly where you want them
>>>*select all of them
>>>*use the format/vertical spacing/make equal menu
>>>*use the format/vertical spacing/increase or decrease menu until you reach the needed spacing
>>>
>>>HTH :-)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform