"editable"

Specifies whether the content can be overwritten by the user.

Synopsis

setValue(string shape, "editable", bool ed);

getValue(string shape, "editable", bool &ed);

shape.editable(bool ed);

Parameters

Parameter Description
shape Name of the object
ed Editable or not editable (TRUE/FALSE)

Description

If "ed"; has been set to "TRUE", a user can change the content of the text field. If it is "FALSE", the field is "read-only". By default, editable is set to "TRUE".

Example

The following example sets the status to "read-only".

main()
{
  shape tf=getShape("textf1");
  ...
  tf.editable(FALSE);
  ...
}

Assignment

Text field