SetReadOnly

                               +-1-+
>>-anEditControl~SetReadOnly(--+---+--)------------------------><
                               +-0-+


The SetReadOnly method sets or unsets the read-only flag for the associated edit control. If the read-only flag is set, the user can no longer modify the text of the edit control.

Arguments:

The only argument is:

bool

1 if the edit control is to be marked as a read-only field (the default), or 0 if new text can be typed into the edit control.

Return value:

0 if this method was successful.