I am using a wxBoxSizer with wxHORIZONTAL set. It contains two elements, with each element being its own complicated sizer. When the main sizer is set to wxVERTICAL, everything displays, but I don't prefer this, it clutters the UI a bit (I have an idea for the upper portion of the right side that I haven't implemented).
(Sorry, have a little thing in the corner there). Also, I can't make the window any smaller here, it's very nearly forced to be maximized.
Secondly, I tried to do wxHORIZONTAL, my goal. However, it didn't render the wxGrid, which was the other element in the parent wxBoxSizer. It is very likely that it's minimum size was larger than the screen, but then I would like some tips on how to make each of these elements responsive.
Here's what I want the UI to look like:
I'm adding widgets with a simple
Code: Select all
sizer->Add(widgetPtr, 1, wxEXPAND | wxALL);
As a side note, I'm using std::shared_ptr s to store sizers and other widgets within classes. This causes segfaults on close because the shared pointer deletes the element before wxWidgets handles it. How would I go about fixing that problem?