]> git.saurik.com Git - wxWidgets.git/commitdiff
Re-added support for property attribute wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING (lines...
authorJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 18 Apr 2009 10:34:03 +0000 (10:34 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Sat, 18 Apr 2009 10:34:03 +0000 (10:34 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60231 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/editors.cpp

index ca489e074009b4575b1fa1d6b1975c51810c7566..2c1518147d6ec04a9030a8ff0ad30a9136766aff 100644 (file)
@@ -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();