use BS_RIGHT for right-aligned controls (patch 945460)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -159,7 +159,7 @@ bool wxCheckBox::Create(wxWindow *parent,
|
||||
|
||||
if ( style & wxALIGN_RIGHT )
|
||||
{
|
||||
msStyle |= BS_LEFTTEXT;
|
||||
msStyle |= BS_LEFTTEXT | BS_RIGHT;
|
||||
}
|
||||
|
||||
return MSWCreateControl(wxT("BUTTON"), msStyle, pos, size, label, 0);
|
||||
|
@@ -138,6 +138,8 @@ bool wxRadioButton::Create(wxWindow *parent,
|
||||
|
||||
if ( HasFlag(wxCLIP_SIBLINGS) )
|
||||
msStyle |= WS_CLIPSIBLINGS;
|
||||
if ( HasFlag(wxALIGN_RIGHT) )
|
||||
msStyle |= BS_LEFTTEXT | BS_RIGHT;
|
||||
|
||||
if ( !MSWCreateControl(_T("BUTTON"), msStyle, pos, size, label, 0) )
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user