Add support for right-aligned checkboxes to wxOSX

Honour wxALIGN_RIGHT style.

Closes #17380.
This commit is contained in:
John Roberts
2016-02-27 16:31:47 +01:00
committed by Vadim Zeitlin
parent 2072bfa00e
commit e14b589e8e
3 changed files with 4 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ wxWidgetImplType* wxWidgetImpl::CreateCheckBox( wxWindowMac* wxpeer,
wxNSButton* v = [[wxNSButton alloc] initWithFrame:r];
[v setButtonType:NSSwitchButton];
if (style & wxALIGN_RIGHT)
[v setImagePosition:NSImageRight];
if (style & wxCHK_3STATE)
[v setAllowsMixedState:YES];