2.320 .sensitive
The attribute defines whether the object can be selected by the user.
At the tablefield, the attribute defines whether the object is to be selectable or not. Thus, it can be used to make the complete tablefield insensitive at once.
Definition
-
Data type
boolean
-
Access
get, set
-
changed event
yes
Particularities of the Attributes .sensitive and .visible
Unlike the other object attributes, the attributes .visible and .sensitive get their final shape only in connection with the object hierarchy. This is because the corresponding attributes of the related parent object have a decisive influence on them. This means that an object can only be visible if itself and its parent are visible. The same applies to selectivity.
For the objects tablefield and edittext there are attributes which enable the dialog designer to influence the design and input behavior. This refers to the display of non-selectabel edittexts as well as to the definition of whether the user shall be able interact with these objects or not.
-
Describes the quality of whether a user can select an object or not. Only if an object is selectable, the user can carry out the actions usual for the object, e.g. inputting data and scrolling.
-
Describes the user’s possibility to change and edit the contents of objects.
-
Describes the possibility of including the object in the keyboard control. In this way the object receives the input focus.
These three attributes influence the object behavior as described below:
Attribut |
Value |
Effects |
---|---|---|
.sensitive |
true |
The user can select the object. Only if .sensitive is true, the attributes .navigable and .editable are effective, otherwise they are ignored. |
.sensitive |
false |
The user cannot select the object. The object cannot be edited or changed. The object contents is displayed in grey as is usual for window systems. |
.editable |
true |
The user can change the object contents, if he can select the object. |
.editable |
false |
The user cannot change the object contents. |
.navigable |
true |
The object is contained in the normal keyboard control, i.e. the user can get the object by navigating in the corresponding window. |
.navigable |
false |
The object cannot be reached by keyboard control. It can, however, get the focus by the mouse. |
Note for the IDM for Motif
If the attributes .active and .sensitive are not explicitly specified, the default for .active is false, and the default for .sensitive is true.
Motif 1.1
If .sensitive = false at a listbox, the scrollbars stay sensitive, i.e. they can be selected and are operable.
Motif 1.2
If .sensitive = false at a listbox, the scrollbars become insensitive, too, i.e. they are not operable.
See also
Attribute