简体   繁体   English

如何与Delphi 7上的保证金保持一致?

[英]How to align with margin on Delphi 7?

I hope I'm not asking a question that was answered before. 我希望我不会问一个之前得到回答的问题。 I searched. 我搜索过。

I need to do something similar to what the article below explains for Delphi 2006+. 我需要做类似于以下文章为Delphi 2006+解释的内容。 Can it be done on Delphi 7 without using a Panel or GroupBox? 可以在不使用Panel或GroupBox的情况下在Delphi 7上完成吗?

http://delphi.about.com/od/vclusing/a/margins-padding.htm http://delphi.about.com/od/vclusing/a/margins-padding.htm

Edit : If the answer is "no", is there any kind of difference between using a TPanel or TcxGroupBox (DevExpress) as a dummy component for a margin? 编辑 :如果答案是“否”,使用TPanel或TcxGroupBox(DevExpress)作为边距的虚拟组件有什么区别吗?

The short answer is no. 最简洁的答案是不。 That's why the feature was added in modern versions of Delphi. 这就是为什么在现代版本的Delphi中添加该功能的原因。 For Delphi 7 you have to use panels, OnResize , custom alignment etc. 对于Delphi 7,您必须使用面板, OnResize ,自定义对齐等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM