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/branches/WX_2_4_BRANCH@24573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,8 +133,9 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title,
|
|||||||
XtSetArg (args[0], XmNorientation, ((style & wxHORIZONTAL) == wxHORIZONTAL ?
|
XtSetArg (args[0], XmNorientation, ((style & wxHORIZONTAL) == wxHORIZONTAL ?
|
||||||
XmHORIZONTAL : XmVERTICAL));
|
XmHORIZONTAL : XmVERTICAL));
|
||||||
XtSetArg (args[1], XmNnumColumns, m_majorDim);
|
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);
|
||||||
|
|
||||||
// if (style & wxFLAT)
|
// if (style & wxFLAT)
|
||||||
// XtVaSetValues (radioBoxWidget, XmNborderWidth, 1, NULL);
|
// XtVaSetValues (radioBoxWidget, XmNborderWidth, 1, NULL);
|
||||||
|
Reference in New Issue
Block a user