I need to create a vertical array of identical sets of UI controls. I have created a Component to host one set of controls, and then I create as many components as I need. Is that the right way?
Now, this is how I attempt to stack them vertically in the parent window:
_editors.emplace_back(); DelayEditor& newEditor = _editors.back(); newEditor.setSize(getWidth(), newEditor.getHeight()); auto rect = newEditor.getBoundsInParent(); newEditor.setTopLeftPosition(0, previousEditorBottom); rect = newEditor.getBoundsInParent(); addAndMakeVisible(newEditor);
This doesn't work. I only see one editor (I assume others are beneath it), although rect does reflect the change after setTopLeftPosition call.
_editors is std::deque<MyComponent>.