There is a wxDialog which has a lot of widgets (lot of wxButton, wxHyperlinkCtrl, wxStaticText, wxBoxSizer etc).
Now, when a particular button is clicked, one static text changes and hence the size changes.
Because of this, it results in an overlap of that text control with the adjoining button.
In the button click event handler, I have the following stuff, yet it does not work correctly.
And this issue is only on Mac. On Windows, it works fine with just SetSizerAndFit.
Code: Select all
SetSizerAndFit(m_boxSizerMain); //m_boxSizerMain is the main box sizer of the dialog. Refresh(); Update();