Mode Property

Measurement Studio User Interface

Mode Property

Syntax

CWButton.Mode

Data Type

CWButtonModes

You can use the following constants with this data type:

  • cwModeIndicator–The CWButton does not respond to user input. In this mode you can only change the value of the CWButton programmatically.
  • cwModeSwitchUntilReleased–The value of the CWButton changes when you click the CWButton. The value of the CWButton changes back to its original state when you release the mouse button.
  • cwModeSwitchWhenPressed–The value of the CWButton changes when you click the CWButton. The value remains unchanged until you click the CWButton again.

Purpose

Specifies how the button responds to user input.

Example

'Button acts only as indicator
'It does not respond to user interaction
CWButton1.Mode = cwModeIndicator