Must call DoMoveWindow in Create() or buttons may not be
moved git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
99f677aef3
commit
d2699196d3
@ -153,6 +153,11 @@ bool wxRadioBox::Create(wxWindow *parent,
|
|||||||
SetClientSize(DoGetBestClientSize());
|
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
|
// radiobox should already have selection so select at least one item
|
||||||
SetSelection(0);
|
SetSelection(0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user