Don't show focus ring on wxListBox

In native OS X apps, focus ring is not shown around NSTableView controls
(focus is indicated differently, with selection's color).

See eece498 for the same fix in wxDataViewCtrl.
This commit is contained in:
Václav Slavík
2021-03-07 18:25:30 +01:00
parent 8d01aaf783
commit 1d23f7befe

View File

@@ -648,6 +648,7 @@ wxWidgetImplType* wxWidgetImpl::CreateListBox( wxWindowMac* wxpeer,
wxNSTableView* tableview = [[wxNSTableView alloc] init];
[tableview setDelegate:tableview];
[tableview setFocusRingType:NSFocusRingTypeNone];
// only one multi-select mode available
if ( (style & wxLB_EXTENDED) || (style & wxLB_MULTIPLE) )
[tableview setAllowsMultipleSelection:YES];