两种形式相互捕捉 [英] Two forms to snap each other

查看:112
本文介绍了两种形式相互捕捉的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个关于两种形式相互碰撞的问题。



例如,如果我将一个窗体移动到另一个窗体附近,并且它处于一定距离,那么边缘将捕捉到另一个窗体边缘。抓住后,我可以移动两种形式,只移动一种形式。我如何才能实现这一点?



我在Skype,DVD Decrypter和ImgBurn中看到这种效果。

解决方案

尝试使用 JVCL 的TJvFormMagnet 组件(JEDI Visual Component Library)。


I have a question regarding to two forms snapping each other.

For example if I move one form close to another and it's in certain distance then it's edge snaps to another forms edge. After snapping, I can move two forms by moving only one form. How can I achieve this?

I have seen this effect in Skype, DVD Decrypter and in ImgBurn.

解决方案

Try using the TJvFormMagnet component of the JVCL (JEDI Visual Component Library).

这篇关于两种形式相互捕捉的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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