title: How do I override the ReadOnly property on DevExpress editors with repositoryitems
body: <p>I use Delphi XE3 and DevExpress ExpressEditors Library 12.2.4.</p>
  
  <p>I have a form with several DevExpress editors (TcxTextEdit, TcxLookupCombobox, TcxImageComboBox, TcxMemo and TcxPopupEdit among others). Many of these editors (but not all) have a repositoryitem. I need to set some of these editors to readonly. If i do this</p>
  
  <pre><code>Edit1.Properties.ReadOnly := true;
  </code></pre>
  
  <p>it will not work if the editor has a repositoryitem, since the repositoryitems value will override the editors properties. If I do this</p>
  
  <pre><code>Edit1.ActiveProperties.ReadOnly := true;
  </code></pre>
  
  <p>this will actually change the repositoryitem, so all editors based on the same repositoryitem will also be readonly. </p>
  
  <p>One solution I tried was to assign the repositoryitems properties to the editors properties before showing the form, and set the repositoryitem to nil. This worked fine for the ReadOnly property, but had the side effect that this also set the editor events to the repositoryitems events. Many of the editors on the form has events, so I couldn't use this solution. One solution to this would be to manually reset the OnXXX-properties after clearing the repositoryitem, but I also have a few editors that have events both on the editor and on the associated repositoryitem. </p>
  
  <p>How do I set the readonly property of some of the editors, but not on other editors that use the same repositoryitem? I would love a solution that worked on all properties, but for now ReadOnly is most important.</p>