Fix text alignment in wxCheckBox

Align the text according to the style.

See #17933.
This commit is contained in:
Artur Wieczorek
2017-08-03 11:15:56 +02:00
parent 7c0d4f211d
commit da0299f30e

View File

@@ -32,6 +32,8 @@ wxWidgetImplType* wxWidgetImpl::CreateCheckBox( wxWindowMac* wxpeer,
[v setImagePosition:NSImageRight];
if (style & wxCHK_3STATE)
[v setAllowsMixedState:YES];
[v setAlignment: (style & wxALIGN_RIGHT) ?
NSRightTextAlignment : NSLeftTextAlignment];
wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
return c;