使用VCL对接:如何使垂直停靠的表单优先于水平停靠的表单?

发布于 2024-08-26 06:09:23 字数 483 浏览 6 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

神经大条 2024-09-02 06:09:23

使用面板来包含组件/表单/其他面板,并从那里构建界面。

在这种情况下,将两个右侧表单(绿色和黄色)放在一个面板上,绿色的在面板内对齐“客户端”,红色的在面板内对齐“底部”,并将父面板对齐为“客户端” ”。将红色表格对齐为“左”。

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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文