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
- Implementing .content or .navigable in an edit text can influence whether the cursor (caret) is drawn as a solid line in another edittext. Please note that for an edit text with .navigable = false, no input is possible under Motif.
- The solid cursor does not allow any conclusions to be drawn about the navigation order or the focus of an edit text.
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:
- Simplifying access to the text of the active entry
- 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]