From d45ea58833f9a675ee8d78aaf6be2b725536f743 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sun, 16 Nov 2003 11:14:34 +0000 Subject: [PATCH] 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 --- src/motif/radiobox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/motif/radiobox.cpp b/src/motif/radiobox.cpp index 9076292ca0..ff0bed1a6e 100644 --- a/src/motif/radiobox.cpp +++ b/src/motif/radiobox.cpp @@ -133,8 +133,9 @@ 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); // if (style & wxFLAT) // XtVaSetValues (radioBoxWidget, XmNborderWidth, 1, NULL);