]> git.saurik.com Git - wxWidgets.git/commitdiff
Only respect property's wxPG_PROP_READONLY flag for the 'value' column
authorJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 1 Sep 2009 14:11:01 +0000 (14:11 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Tue, 1 Sep 2009 14:11:01 +0000 (14:11 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/editors.cpp

index d0b43d382215aac8bd407c43155efb68f19daa85..e0a6d71cf16c5efaf71626a04ec2e043d5c1df24 100644 (file)
@@ -1642,7 +1642,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
 
     int tcFlags = wxTE_PROCESS_ENTER | extraStyle;
 
 
     int tcFlags = wxTE_PROCESS_ENTER | extraStyle;
 
-    if ( prop->HasFlag(wxPG_PROP_READONLY) )
+    if ( prop->HasFlag(wxPG_PROP_READONLY) && forColumn == 1 )
         tcFlags |= wxTE_READONLY;
 
     wxPoint p(pos.x,pos.y);
         tcFlags |= wxTE_READONLY;
 
     wxPoint p(pos.x,pos.y);