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:
parent
0fa34f8d5b
commit
eece498d0a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user