更改复制粘贴位置

编程入门 行业动态 更新时间:2024-10-26 23:42:03
本文介绍了更改复制粘贴位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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 });

更多推荐

更改复制粘贴位置

本文发布于:2023-11-25 01:26:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627751.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:位置

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!