]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datavcmn.cpp
Allow reusing the same wxWindowID more than 254 times.
[wxWidgets.git] / src / common / datavcmn.cpp
index 858aa98a9aca4e4b7112a2dd517e30599f2c75db..ad62ddae046d8a8e7c4bf5e6ef540d2f0585bff7 100644 (file)
@@ -807,6 +807,19 @@ void wxDataViewRendererBase::PrepareForItem(const wxDataViewModel *model,
 // wxDataViewCustomRendererBase
 // ----------------------------------------------------------------------------
 
+bool wxDataViewCustomRendererBase::ActivateCell(const wxRect& cell,
+                                                wxDataViewModel *model,
+                                                const wxDataViewItem & item,
+                                                unsigned int col,
+                                                const wxMouseEvent* mouseEvent)
+{
+    // Compatibility code
+    if ( mouseEvent )
+        return LeftClick(mouseEvent->GetPosition(), cell, model, item, col);
+    else
+        return Activate(cell, model, item, col);
+}
+
 void
 wxDataViewCustomRendererBase::WXCallRender(wxRect rectCell, wxDC *dc, int state)
 {