Made element layout consistent with wxMSW/wxGTK when

radiobox is wider/taller than necessary. Previously
the last element was stretched to fit remaining space.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-11-16 11:14:34 +00:00
parent 6746fe58b5
commit 795c00bdcc

View File

@@ -115,8 +115,10 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
XtSetArg (args[0], XmNorientation, ((style & wxHORIZONTAL) == wxHORIZONTAL ?
XmHORIZONTAL : XmVERTICAL));
XtSetArg (args[1], XmNnumColumns, m_majorDim);
XtSetArg (args[2], XmNadjustLast, False);
Widget radioBoxWidget = XmCreateRadioBox ((Widget)m_mainWidget, "radioBoxWidget", args, 2);
Widget radioBoxWidget =
XmCreateRadioBox ((Widget)m_mainWidget, "radioBoxWidget", args, 3);
m_radioButtons.reserve(n);
m_radioButtonLabels.reserve(n);