]> git.saurik.com Git - wxWidgets.git/commitdiff
Must call DoMoveWindow in Create() or buttons may not be
authorJulian Smart <julian@anthemion.co.uk>
Sun, 17 Aug 2003 16:31:18 +0000 (16:31 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 17 Aug 2003 16:31:18 +0000 (16:31 +0000)
moved

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/univ/radiobox.cpp

index fcbadbd5669fa64a490228304dc04d928e6fb029..c758abf74bae56eb5703cde99aa240051ed55315 100644 (file)
@@ -153,6 +153,11 @@ bool wxRadioBox::Create(wxWindow *parent,
         SetClientSize(DoGetBestClientSize());
     }
 
+    // Need to move the radiobox in order to move the radio buttons
+    wxPoint actualPos = GetPosition();
+    wxSize actualSize = GetSize();
+    DoMoveWindow(actualPos.x, actualPos.y, actualSize.x, actualSize.y);
+
     // radiobox should already have selection so select at least one item
     SetSelection(0);