Add support for right-aligned checkboxes to wxOSX
Honour wxALIGN_RIGHT style. Closes #17380.
This commit is contained in:
committed by
Vadim Zeitlin
parent
2072bfa00e
commit
e14b589e8e
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user