2.60 .content

Contains a string entered by the user in an edittext.

Definition

  • Data type

    string, object [ text ]

  • Access

    get, set

  • changed event

    yes

Exception

If an edittext is a child object of a spinbox object, the .content attribute may not be used. The value is set exclusively via the corresponding attributes of the spinbox object itself.

Notes on IDM for Motif

Note for the Poptext/Combobox object

The .content attribute is only available as a scalar attribute on the poptext (combo box). To access the poptext's content vector, use .text[integer].

It serves the following two functionalities:

  1. Simplifying access to the text of the active entry
  2. Access the actual text in the input field

A query for .content in the poptext style (.style attribute) always returns the text of the active entry, or an error if no entry is active or the poptext is empty. In the other styles, the current content of the editing area is returned.

Setting .content in the listbox or edittext styles also sets the .activeitem attribute to the entry found in .text[I] or to 0.

In the poptext style, the use of .content should be avoided at all costs.

See also

Attribute .content[integer], .text[integer]