更改复制粘贴位置 [英] Change Copy Paste Position

查看:117
本文介绍了更改复制粘贴位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi


默认情况下,复制和粘贴后的粘贴位置是表单的中心,然后在第二次粘贴后,控件放置到第一个粘贴对象。



是否可以在自定义设计界面中更改此行为?



我会喜欢有以下内容:

第一个粘贴的对象应该放置一个小的偏移量到复制的对象(不在表单的中心)?





这可能吗?

这怎么可能?




预先感谢您的帮助





2张照片可以更好地显示我想要的内容:

WhatItIs [ ^ ]



WhatIWant [ ^ ]

解决方案





您可以使用jquery ot Java Script来完成。



您可以在jquery中定义一个方法



 


#target)。paste(function(){
// 您的业务逻辑,如Offset和所有
});


Hi
By Default the "paste position" after copy&paste is the center of the form and then after the 2nd paste the control gets placed with a little offset to the first pasted object.

Is it possible to change that behaviour in my custom design surface?

I would like to have the following:
The first pasted object should be placed with the small offset to the copied one (not in the center of the form)?


Is this possible?
And how is this possible?


Thanks in advance for your help


2 pics to better show what I would like to have:
WhatItIs[^]

WhatIWant[^]

解决方案

Hi,

You can do it by using jquery ot Java Script.

You can define a method in jquery as


("#target").paste(function() { // Your Business logic like Offset and all });


这篇关于更改复制粘贴位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆