Mode Property

Measurement Studio User Interface

Mode Property

Syntax

CWPointer.Mode

Data Type

CWPointerModes

You can use the following constants with this data type:

  • cwPointerModeControl–The pointer responds to mouse clicks, clicks on the increment and decrement buttons, and programmatic changes.
  • cwPointerModeControlExact–The pointer responds to mouse clicks directly on the pointer, mouse clicks on the increment and decrement buttons, and programmatic changes.
  • cwPointerModeControlSmooth–The pointer responds to mouse clicks anywhere on the control, mouse clicks on the increment and decrement buttons, and programmatic changes. The pointer does not snap to the clicked location as it does when the mode is cwPointerModeControl. This mode prevents abrupt changes in the pointer value.
  • cwPointerModeIndicator–The pointer does not respond to mouse clicks. You can only change the value of the pointer programmatically.
  • cwPointerModeMaximum–The pointer always contains the maximum value that other pointers have had since statistics were reset. The pointer does not respond to user input, and you cannot set its value programmatically.
  • cwPointerModeMean–The pointer always contains the mean of the values that other pointers have had since statistics were reset. The pointer does not respond to user input, and you cannot set its value programmatically.
  • cwPointerModeMinimum–The pointer always contains the minimum value that other pointers have had since statistics were reset. The pointer does not respond to user input, and you cannot set its value programmatically.

Purpose

Specifies how the pointer behaves and responds to user input.

Example

CWSlide1.Pointers.Item(1).Mode = cwPointerModeIndicator