Added 'bool editable' argument to wxPropertyGrid::MakeColumnEditable()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -925,6 +925,29 @@ void wxPropertyGrid::DoSetSelection( const wxArrayPGProperty& newSelection,
 | 
			
		||||
 | 
			
		||||
// -----------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
void wxPropertyGrid::MakeColumnEditable( unsigned int column,
 | 
			
		||||
                                         bool editable )
 | 
			
		||||
{
 | 
			
		||||
    wxASSERT( column != 1 );
 | 
			
		||||
 | 
			
		||||
    wxArrayInt& cols = m_pState->m_editableColumns;
 | 
			
		||||
 | 
			
		||||
    if ( editable )
 | 
			
		||||
    {
 | 
			
		||||
        cols.push_back(column);
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
        for ( int i = cols.size() - 1; i > 0; i-- )
 | 
			
		||||
        {
 | 
			
		||||
            if ( cols[i] == (int)column )
 | 
			
		||||
                cols.erase( cols.begin() + i );
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// -----------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
void wxPropertyGrid::DoBeginLabelEdit( unsigned int colIndex,
 | 
			
		||||
                                       int selFlags )
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user