开发者

Docking using VCL: How to make vertically docked Forms prevail over horizontally docked Forms?

开发者 https://www.devze.com 2022-12-23 20:47 出处:网络
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.

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 r开发者_C百科estricted in width.

That's how it looks like currently:

http://www.neunbeere.de/ExtRef/Dock1.PNG

That's how I want it to look like:

http://www.neunbeere.de/ExtRef/Dock2.PNG

Thanks


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

0

精彩评论

暂无评论...
验证码 换一张
取 消