How to set "Align Left" to get over "Align Top" in Delphi 7?

I want to align a specific component with Align = alLeft in the panel, occupying the entire left side of the panel. Then another component Align = AlTop should also be installed, but it does not prevail over the component aligned to the left, so that it occupies only the top of the panel, where the component that is aligned to the left does not occupy. (if that makes sense). The thing is, I am doing a lot of custom panel drawing, so I canโ€™t add additional panels on top of my original panel to add a separation panel and align as usual. So I want to change how Align works for this particular panel. Is it possible? I am using Delphi 7. Something like this:

alt text http://www.freeimagehosting.net/uploads/2ede3a0023.jpg

+4
source share
2 answers

Take a look at alCustom. I donโ€™t see that this has been used a lot these days, but Demo2 from here may be what you need.

+2
source

Well, if you cannot add an extra panel with alClient under the panel using alTop,

then my alternative would be to use anchors, just placing the panels where you want them, and adding akBottom to the left panel and akRight to the top panel.

The final option is to resize the panels yourself in the OnResize event in the form / parent container.

+4
source

Source: https://habr.com/ru/post/1314933/


All Articles