OS X: Don't show focus ring around wxDataViewCtrl

In native OS X apps, focus ring is not shown around NSTableView controls
(focus is indicated differently, with selection's color). For some
reason, NSTableView shows the focus ring by default when used in wxDVC,
so we need to explicitly disable it.
This commit is contained in:
Václav Slavík 2016-10-06 17:39:19 +02:00
parent 0fa34f8d5b
commit eece498d0a

View File

@ -1933,6 +1933,7 @@ wxCocoaDataViewControl::wxCocoaDataViewControl(wxWindow* peer,
void wxCocoaDataViewControl::InitOutlineView(long style)
{
[m_OutlineView setImplementation:this];
[m_OutlineView setFocusRingType:NSFocusRingTypeNone];
[m_OutlineView setColumnAutoresizingStyle:NSTableViewLastColumnOnlyAutoresizingStyle];
[m_OutlineView setIndentationPerLevel:GetDataViewCtrl()->GetIndent()];
NSUInteger maskGridStyle(NSTableViewGridNone);