X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/619df5a4e25a131c38dbaa2b9c0eab481c344723..ee032c59df7ac4facdfdffce016768ab858e18c0:/src/osx/carbon/dataview.cpp diff --git a/src/osx/carbon/dataview.cpp b/src/osx/carbon/dataview.cpp index 8eeeac29a9..f4a2c7fdd4 100644 --- a/src/osx/carbon/dataview.cpp +++ b/src/osx/carbon/dataview.cpp @@ -133,7 +133,8 @@ static bool InitializeColumnDescription(DataBrowserListViewColumnDesc& columnDes } if (columnPtr->IsSortable()) columnDescription.propertyDesc.propertyFlags |= kDataBrowserListViewSortableColumn; - if (columnPtr->GetRenderer()->GetMode() == wxDATAVIEW_CELL_EDITABLE) + if ((columnPtr->GetRenderer()->GetMode() == wxDATAVIEW_CELL_EDITABLE) || + (columnPtr->GetRenderer()->GetMode() == wxDATAVIEW_CELL_ACTIVATABLE)) columnDescription.propertyDesc.propertyFlags |= kDataBrowserPropertyIsEditable; if ((columnDescription.propertyDesc.propertyType == kDataBrowserCustomType) || (columnDescription.propertyDesc.propertyType == kDataBrowserDateTimeType) || @@ -489,7 +490,7 @@ void wxDataViewRenderer::SetMode(wxDataViewCellMode mode) DataBrowserPropertyFlags flags; verify_noerr(macDataViewListCtrlPtr->GetPropertyFlags(dataViewColumnPtr->GetPropertyID(),&flags)); - if (mode == wxDATAVIEW_CELL_EDITABLE) + if ((mode == wxDATAVIEW_CELL_EDITABLE) || (mode == wxDATAVIEW_CELL_ACTIVATABLE)) flags |= kDataBrowserPropertyIsEditable; else flags &= ~kDataBrowserPropertyIsEditable; @@ -1027,6 +1028,14 @@ bool wxDataViewCtrl::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, return true; } +wxSize wxDataViewCtrl::DoGetBestSize() const +{ + wxSize best = wxControl::DoGetBestSize(); + best.y = 80; + + return best; +} + /*static*/ wxVisualAttributes wxDataViewCtrl::GetClassDefaultAttributes(wxWindowVariant variant) { @@ -1034,7 +1043,7 @@ wxVisualAttributes wxDataViewCtrl::GetClassDefaultAttributes(wxWindowVariant var attr.colFg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT ); attr.colBg = wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOX ); - attr.font.MacCreateFromThemeFont(kThemeViewsFont); + //attr.font.CreateSystemFont(wxOSX_SYSTEM_FONT_VIEWS); return attr; }