From: Jaakko Salli <jaakko.salli@dnainternet.net>
Date: Sat, 18 Apr 2009 10:34:03 +0000 (+0000)
Subject: Re-added support for property attribute wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING (lines... 
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d07e1e0c13c99291bf1d81f5bcfe252f9d9d4010

Re-added support for property attribute wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING (lines required to support it were accidentally removed at some point)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/propgrid/editors.cpp b/src/propgrid/editors.cpp
index ca489e0740..2c1518147d 100644
--- a/src/propgrid/editors.cpp
+++ b/src/propgrid/editors.cpp
@@ -841,6 +841,10 @@ wxWindow* wxPGChoiceEditor::CreateControlsBase( wxPropertyGrid* propGrid,
 
     int odcbFlags = extraStyle | wxBORDER_NONE | wxTE_PROCESS_ENTER;
 
+    if ( (property->GetFlags() & wxPG_PROP_USE_DCC) &&
+         (property->IsKindOf(CLASSINFO(wxBoolProperty)) ) )
+        odcbFlags |= wxODCB_DCLICK_CYCLES;
+
     //
     // If common value specified, use appropriate index
     unsigned int cmnVals = property->GetDisplayedCommonValueCount();