| Online Eiffel Documentation

EiffelStudio

# Properties

This cluster contains all the common properties available for Vision2 widgets and items. Every Vision2 widget has the same set of properties inherited from EV_WIDGET, but many widgets also inherit additional properties, further refining the behavior of the widget.

EV_WIDGET inherits the following properties:

- EV_PICK_AND_DROPABLE
  - For an overview of the Pick and Drop mechanism, click here.
- EV_SENSITIVE
  - If a Vision2 component inherits EV_SENSITIVE, it can be made to ignore events.
    Use disable_sensitive to disable event handling, and enable_sensitive to restore event handling.
- EV_COLORIZABLE
  - If a Vision2 component inherits EV_COLORIZABLE it has facilities for modifying its foreground and background colors.
    Use set_foreground_color to set the foreground_color and set_background_color to set the background_color.
    Use set_default_colors to restore the colors to their defaults.
- EV_HELP_CONTEXTABLE
  - If a Vision2 component inherits EV_HELP_CONTEXTABLE, facilities are provided for associating help to the component when F1 or Shift F1 is pressed.
- EV_POSITIONED
  - If a Vision2 component inherits EV_POSITIONED it is possible to query its current position, size and minimum size.
    Use x_position and y_position to find its position relative to its parent.
    Use width and height to find its size.
    Use minimum_width and minimum_height to find its size.
- EV_CONTAINABLE
  - If a Vision2 component inherits EV_CONTAINABLE it is able question its parent. Use parent to query the current parent.

Note: EV_CONTAINABLE has no features for setting the parent. In Vision2, a child has no features for setting its parent, while a parent such as ev_container contains routines for adding children (one example is extend).

The following properties are also used within Vision2:

- EV_DESELECTABLE
- EV_DRAWABLE
- EV_FONTABLE
- EV_PIXMAPABLE
- EV_POSITIONABLE
- EV_SELECTABLE
- EV_TEXTABLE
- EV_TOOLTIPABLE