"editable"

Specifies whether the selection text can be overwritten by a 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

Using this attribute you can specify whether a user can personally edit the text in the selection field of a combo box or whether the user can only select the options. By default, editable==FALSE.

Example

The following example permits no further change by a user and sets the input text to a specific value.

main()
{
  shape cb=getShape("COMBO_BOX1");
  cb.editable=FALSE;
  cb.text="Test";
}

Assignment

Combo box