Mendix 6.9.0 does this for you. You can set the checkbox editabilty to never and set read-only style to control.
https://docs.mendix.com/releasenotes/desktop-modeler/6.9#rendering-read-only-widgets-as-controls
In the version you are using you would need to use a custom widget.
In your domain model, set the write rights of this attribute to Read (instead of Read/Write) for all module roles.