Is there a way to force the BoxSizer to display its elements with a specific gap between them? (closer to each other rather than further)
I'm trying to find a way to display 5 StaticText elements closer together so they fit in a small panel, but am only able to fit 4 elements
There clearly is space for 5 StaticTexts if they were closer to eachother
I assume I could also just make it a single static text with lines but am trying to keep each line as a different object
I guess that is not possible. The layout engine takes into account the largest string size, plus a small margin so it can be clearly seen.
You could try adding between strings a fixed space by AddSpacer passing a negative value. This is a dirty hack I haven't tested.