Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy,paste placement
Message
 
To
28/05/2003 14:04:31
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00793536
Message ID:
00793645
Views:
49
>That gave me an idea. I could use something similar to undo VFP's paste positioning. Merci bien!

No problemo
See my sig :-)


>
>>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 :-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform