You can use the above code to Toggle ReadOnly status during runtime. This code is tested.
From the next version, we have provided DATA lReadOnly. We can toggle this at runtime with oEdit:lReadOnly := .T. or .F..
when I had only two buttons I cannot delete printer button