Hi, please look at the attached layout, I have a form with two memos and buttons belonging to each memo. The challenge is, if the form is resized by the user by dragging the edge, to give the size gain or loss not only to one memo, but distribute it between the two memos. And the buttons should stay at the same position relative to the memo they belong to.
I am aware of the possibility to hook into the form's onResize event and recalculate the positions of all the elements myself, but I wonder whether there isn't a graphical element allowing me to define this behaviour via the form editor.
I thought that I could put each memo along with it's buttons on a panel, and anchor the memo to all four panel sides. This would make the memo size follow the panel size, and the buttons to stay at the right places, and thus simplify the problem to distribute the size change between the two panels. But still I'd have to hook onResize and recalculate the panel coordinates.
Is there any GUI element, a TSplitter maybe, which allows me to achieve the desired behaviour via the forms editor?
Thnx, Armin.