使用VCL对接:如何使垂直停靠的表单优先于水平停靠的表单?
我在 Delphi 7 中使用停靠 (VCL)。在我的主窗体中,停靠了另外两个窗体:一个垂直位于左边缘,一个水平位于底部边缘。
问题:停靠在底部边缘的窗体占据窗体的整个宽度,限制了停靠在左边缘的窗体的高度。
我想要相反的行为:垂直停靠的表单占据表单的整个高度,而停靠在底部的表单的宽度受到限制。
这就是目前的样子:
这就是我希望它看起来像的样子:
谢谢
I am using docking (VCL) in Delphi 7. In my main form, two other forms are docked: One vertically at the left edge, one horizontally at the bottom edge.
Problem: The form docked at the bottom edge takes the full width of the form, limiting the height of the form that is docked at the left edge.
I would like the opposite behaviour: The vertically docked form taking full height of the form and form docked at the bottom to be restricted in width.
That's how it looks like currently:
That's how I want it to look like:
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用面板来包含组件/表单/其他面板,并从那里构建界面。
在这种情况下,将两个右侧表单(绿色和黄色)放在一个面板上,绿色的在面板内对齐“客户端”,红色的在面板内对齐“底部”,并将父面板对齐为“客户端” ”。将红色表格对齐为“左”。
Use panels to contain your components/forms/other panels, and build the interface from there.
In this case, put the two right-hand side forms (green and yellow) on a single panel, the green onne aligned "client", and the red one aligned "bottom" within the panel, and align the parent panel as "client". Align the red form as "left".