the ingredients to program this exist: 1. Anchor, you can anchor towards form borders, but what's less used and useful for your idea is you also anchor to containers.
The only thing you need to "manually" resize with a "split bar" is two containers, the rest follows through anchoring.
Bye, Olaf.