Only respect property's wxPG_PROP_READONLY flag for the 'value' column

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jaakko Salli
2009-09-01 14:11:01 +00:00
parent e9fb1910b9
commit 83110b7570

View File

@@ -1642,7 +1642,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrl( const wxPoint& pos,
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);