加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

delphi – 如何在没有可停靠窗体的慢速冻结运动的情况下制作像ID

发布时间:2020-12-15 04:11:34 所属栏目:大数据 来源:网络整理
导读:如何在没有可停靠窗体的缓慢冻结运动的情况下执行IDE方法或最终制作基本停靠方法? 当我在Delphi中搜索可停靠的表单并找到a post by Zibadian on Programmers Heaven时: First off: The windows in the Delphi IDE aren’t MDI forms,by SDI forms. Now to
如何在没有可停靠窗体的缓慢冻结运动的情况下执行IDE方法或最终制作基本停靠方法?

当我在Delphi中搜索可停靠的表单并找到a post by Zibadian on Programmers Heaven时:

First off: The windows in the Delphi IDE aren’t MDI forms,by SDI forms.

Now to create a dockable window.

Form2 will be dockable and Form1 will be the place to dock it to. Place a control (such as a TPanel) on Form1 to serve a DockSite. Make sure that you set the DockSite and the UseDockManager properties to true for that control.

For Form2 set the DragKind to dkDrop,the DragMode to dmAutomatic and UseDockManager to true.

That was the basic dock function. If you run your program,show the Form2 and drag that form over the docksite,it should dock at that site. You can even undock it by grabbing the “caption” as you have seen in the IDE.

对我来说,该方法非常缓慢地移动可停靠的形式.然而,Zibadian的答案继续描述IDE如何做到:

The dock-method of the IDE is a little more complex,since you don’t see the docksite. I think,you need to write a Form1.OnDockOver or Form1.OnDockDrop to perform that. That (Those) event(s) need to show the docksite at the appropriate location.

解决方法

看看 Jeremy North的 Using the TDockTabSet component文章.它已经有几年了,但应该给你一些有用的指示.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读