Remove the ability to sort by column in virtual wxListCtrl, and remove movable columns as we don't currently support it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1217,15 +1217,18 @@ long wxListCtrl::InsertColumn(long col, wxListItem& item)
|
||||
}
|
||||
m_dbImpl->InsertColumn(col, type, item.GetText(), just, item.GetWidth());
|
||||
|
||||
// set/remove options based on the wxListCtrl type.
|
||||
DataBrowserTableViewColumnID id;
|
||||
m_dbImpl->GetColumnIDFromIndex(col, &id);
|
||||
DataBrowserPropertyFlags flags;
|
||||
verify_noerr(m_dbImpl->GetPropertyFlags(id, &flags));
|
||||
if (GetWindowStyleFlag() & wxLC_EDIT_LABELS)
|
||||
{
|
||||
DataBrowserTableViewColumnID id;
|
||||
m_dbImpl->GetColumnIDFromIndex(col, &id);
|
||||
DataBrowserPropertyFlags flags;
|
||||
verify_noerr(m_dbImpl->GetPropertyFlags(id, &flags));
|
||||
flags |= kDataBrowserPropertyIsEditable;
|
||||
verify_noerr(m_dbImpl->SetPropertyFlags(id, flags));
|
||||
|
||||
if (GetWindowStyleFlag() & wxLC_VIRTUAL){
|
||||
flags &= ~kDataBrowserListViewSortableColumn;
|
||||
}
|
||||
verify_noerr(m_dbImpl->SetPropertyFlags(id, flags));
|
||||
}
|
||||
|
||||
return col;
|
||||
|
@@ -1900,7 +1900,7 @@ void wxMacDataItemBrowserControl::InsertColumn(int colId, DataBrowserPropertyTyp
|
||||
|
||||
columnDesc.propertyDesc.propertyID = (kMinColumnId + colId);
|
||||
columnDesc.propertyDesc.propertyType = colType;
|
||||
columnDesc.propertyDesc.propertyFlags = kDataBrowserListViewDefaultColumnFlags | kDataBrowserListViewTypeSelectColumn;
|
||||
columnDesc.propertyDesc.propertyFlags = kDataBrowserListViewSortableColumn | kDataBrowserListViewTypeSelectColumn;
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_4
|
||||
columnDesc.propertyDesc.propertyFlags |= kDataBrowserListViewNoGapForIconInHeaderButton;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user