| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > EditDropListClass > EditDropListClass Methods >====== SetReadOnly (set edit control to read-only:EditDropClass) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[setalerts alert keystrokes for the edit control editdroplistclass .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[takeevent process edit in place events editdroplist class .htm|{{btn_next_n.gif|Next page}}]] | | || **SetReadOnly( **//state//** ), VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} | **SetReadOnly** | The **SetReadOnly **method places the edit-in-place control in a read-only state. | | //state// | An integer constant, variable, EQUATE, or expression that indicates whether to disable the droplist control's dropdown button. A value of one (1 or True) disables the button. A value of zero (0 or False) has no effect on the control. | **Implementation:** The SetReadOnly method uses PROP:ReadOnly to place the edit-in-place conrol in a read-only state. After the parent call in the Init method of the EditInPlace object is the recommended place to call SetReadonly. **Example:** **EditInPlace::CUS:Number.SetReadOnly()** **See Also:**     [[readonly edit in place control is read only .htm|ReadOnly]]