Fix text alignment in wxCheckBox
Align the text according to the style. See #17933.
This commit is contained in:
@@ -32,6 +32,8 @@ wxWidgetImplType* wxWidgetImpl::CreateCheckBox( wxWindowMac* wxpeer,
|
|||||||
[v setImagePosition:NSImageRight];
|
[v setImagePosition:NSImageRight];
|
||||||
if (style & wxCHK_3STATE)
|
if (style & wxCHK_3STATE)
|
||||||
[v setAllowsMixedState:YES];
|
[v setAllowsMixedState:YES];
|
||||||
|
[v setAlignment: (style & wxALIGN_RIGHT) ?
|
||||||
|
NSRightTextAlignment : NSLeftTextAlignment];
|
||||||
|
|
||||||
wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
|
wxWidgetCocoaImpl* c = new wxWidgetCocoaImpl( wxpeer, v );
|
||||||
return c;
|
return c;
|
||||||
|
Reference in New Issue
Block a user