GUI Help > Special > setReadOnly
setReadOnly
setReadOnly handle editGadget, bool readOnly
Description: Enables or disables editing of the text in an edit gadget by the user. The difference between this command and setGadgetEnabled is that this command does not grey-out an edit gadget.
Return Value:
Parameters:
editGadget | Handle to an edit gadget
readOnly | 1 to disable editing, 0 to enable editing
Remarks:
See Also:
Example: (Note: You will need to include the GUI constants file for this example to work)