readonly / enabled status of a form

The readonly or enabled property is not working when the form is not visible in front. The actual value of the property is set properly. I can verify the value using a dialog. But it has no effect on the form if the form is not in front.

what do you mean not at front?

if you do:

forms.xxxx.controller.readonly = true;

and then
forms.xxxx.controller.show()

then the form is not in readonly mode??

do you have an example?