Component::setBelow() et al

Hi,

So the idea is instead of this code:

    comp2->setBounds(comp1->getX(), comp1->getBottom(), comp1->getWidth(), 24);

write this:

    comp2->setBelow(comp1, height, topMargin = 0);

Similarly for all four side.
The resized code become more readable that way (and the jucer would be able to parse such statement and figure out the rule?).

Yes, but the Component class is already a bit bloated with methods like that - you could go on forever adding “addAbove”, “addOnRight”, etc etc.

I’ve got a vague plan in mind to put this sort of thing into some kind of layout management classes, which makes more sense than stuffing it all into Component.