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:
Vadim Zeitlin
2004-07-25 12:27:23 +00:00
parent 34ad2e8f4a
commit 93212feea0
2 changed files with 7 additions and 5 deletions

View File

@@ -159,7 +159,7 @@ bool wxCheckBox::Create(wxWindow *parent,
if ( style & wxALIGN_RIGHT ) if ( style & wxALIGN_RIGHT )
{ {
msStyle |= BS_LEFTTEXT; msStyle |= BS_LEFTTEXT | BS_RIGHT;
} }
return MSWCreateControl(wxT("BUTTON"), msStyle, pos, size, label, 0); return MSWCreateControl(wxT("BUTTON"), msStyle, pos, size, label, 0);

View File

@@ -138,6 +138,8 @@ bool wxRadioButton::Create(wxWindow *parent,
if ( HasFlag(wxCLIP_SIBLINGS) ) if ( HasFlag(wxCLIP_SIBLINGS) )
msStyle |= WS_CLIPSIBLINGS; msStyle |= WS_CLIPSIBLINGS;
if ( HasFlag(wxALIGN_RIGHT) )
msStyle |= BS_LEFTTEXT | BS_RIGHT;
if ( !MSWCreateControl(_T("BUTTON"), msStyle, pos, size, label, 0) ) if ( !MSWCreateControl(_T("BUTTON"), msStyle, pos, size, label, 0) )
return false; return false;