wxRadioBox appearance on Mac is messed up
Posted: Wed Aug 21, 2019 7:06 pm
Hi All,
The following Radio Box implementation looks fine on Windows. But on Mac, the buttons appear with lots of spaces before the first button and also in between two buttons!
How can i fix this? Please help.
The following Radio Box implementation looks fine on Windows. But on Mac, the buttons appear with lots of spaces before the first button and also in between two buttons!
How can i fix this? Please help.
Code: Select all
wxBoxSizer* itemBoxSizer7 = new wxBoxSizer(wxVERTICAL);
wxArrayString expireOptions = wxArrayString();
expireOptions.push_back(_("Never Expires"));
expireOptions.push_back(_("Expires"));
expiryRadioBox = new wxRadioBox(itemDialog1, RADIOBOX_DATE, "Expires (Optional)", wxDefaultPosition, shareOptionsSize, expireOptions, 0, wxNO_BORDER);
expiryRadioBox->SetSelection(0);
wxStaticBoxSizer *rBoxSizer = new wxStaticBoxSizer(wxHORIZONTAL, this,"");
rBoxSizer->Add(expiryRadioBox, 0, wxEXPAND);
itemBoxSizer7->Add(rBoxSizer, 0, wxALIGN_LEFT | wxALL, 5);