Ivan:
Not sure exactly what you're trying to do or where you are trying to do it from but from what I can gather, would you not be able to achieve what you want using the control's "lReadOnly" property? If you toggle this value according to the conditions you refer to, and then refresh the control, that might give you what you want. Remember that you can also use the control's "cReadOnlyDisplay" property to establish how the control should look when it is read-only. Also, when changing property values on Codemine controls, take a look at the control's SET and SETVALUE methods that ensure that whatever other conditions need to be set when you change a Codemine control property are handled correctly.
Just a few ideas that may help.
Later
-=Gary