PointerValueChanged Event

Measurement Studio User Interface

PointerValueChanged Event

Syntax

Sub ControlName_PointerValueChanged( Pointer As Long, Value As Variant)

Applies To

CWKnob

CWSlide

Purpose

Generated as the value of a pointer changes from the user interface or the program.

Remarks

Programmatic or graphical changes to the pointer cause this event. The CWSlide or CWKnob controls generate this event every time the value of a pointer changes while it is being set. For example, if you click and hold the mouse button in the middle of the control and drag the mouse, the value changes and you get a PointerValueChanged event. As you continue to drag and the value changes again, this event is generated again.

Parameters

Pointer As Long

The index of the pointer that changed.

Value As Variant

The new value of the pointer.

Example

'Digitally display the value of a slide in a CWNumEdit control
'When the value of the slide changes
Private Sub CWSlide1_PointerValueChanged(ByVal Pointer As Long, Value As Variant)
    CWNumEdit1.Value = CWSlide1.Value
End Sub

See Also

PointerValueCommitted