Delphi - 在运行时移动控件在设计模式下 [英] Delphi - move control in runtime alike on design mode

查看:186
本文介绍了Delphi - 在运行时移动控件在设计模式下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我设法在设计模式下使用鼠标移动自己的运行时模式组件。



组件没有移动,直到鼠标按钮没有释放,此时空白框架显示,并提示显示左上角的角色。



我完成了许多尝试,但没有成功,直到现在。



任何帮助

解决方案

p>这里(并评估,如果是对您有效(包括组件来源,演示来源和已编译的演示)。



问候。


Hy guys,

I try to move my own component on runtime mode with mouse alike in design mode.

the component isn't moved untill mouse button isn't released and in this time a empty frame is displayed and a hint show lefttop corner possition.

I done a lots of tries but no success untill now.

Any help

解决方案

Here (http://neftali.clubdelphi.com/?p=269) on my web, you can find a component called TSelectOnRuntime. You can view the source code and study it. It's an simple approach to select, resize and move components on runtime.

Download the demo and evaluate, if it's valid for you (include the source of component, demo sources and compiled demos).

Regards.

这篇关于Delphi - 在运行时移动控件在设计模式下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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