]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/propgrid/propgrid_minimal.cpp
Unselect all wxDataViewCtrl items when clicking outside of the item area.
[wxWidgets.git] / samples / propgrid / propgrid_minimal.cpp
index b7d8f8714f548e8b6459b059357c4b10f2a4a47c..3235a91d074d1d4568abc684845f3a34dd37da51 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     2008-08-23
 // RCS-ID:      $Id$
 // Copyright:   (c) Jaakko Salli
 // Created:     2008-08-23
 // RCS-ID:      $Id$
 // Copyright:   (c) Jaakko Salli
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wx.h"
 /////////////////////////////////////////////////////////////////////////////
 
 #include "wx/wx.h"
@@ -59,10 +59,14 @@ void MyFrame::OnPropertyGridChange(wxPropertyGridEvent &event)
     wxPGProperty* p = event.GetProperty();
 
     if ( p )
     wxPGProperty* p = event.GetProperty();
 
     if ( p )
+    {
         wxLogVerbose("OnPropertyGridChange(%s, value=%s)",
                    p->GetName().c_str(), p->GetValueAsString().c_str());
         wxLogVerbose("OnPropertyGridChange(%s, value=%s)",
                    p->GetName().c_str(), p->GetValueAsString().c_str());
+    }
     else
     else
+    {
         wxLogVerbose("OnPropertyGridChange(NULL)");
         wxLogVerbose("OnPropertyGridChange(NULL)");
+    }
 }
 
 void MyFrame::OnPropertyGridChanging(wxPropertyGridEvent &event)
 }
 
 void MyFrame::OnPropertyGridChanging(wxPropertyGridEvent &event)