Mode Property

Measurement Studio User Interface

Mode Property

Syntax

CWNumEdit.Mode

Data Type

CWNumEditModes

You can use the following constants with this data type:

  • cwEdModeControl–The CWNumEdit control responds to user input.
  • cwEdModeIndicator–The CWNumEdit control does not respond to user input. In this mode you can only change the value of the CWNumEdit control programmatically.

Purpose

Specifies how the CWNumEdit control responds to user input.

Example

'Set the CWNumEdit control to be read-only to the user
CWNumEdit1.Mode = cwEdModeIndicator