OnChange Event (ASlider)

Occurs when the ThumbValue property has changed on the object using the keyboard or the mouse or by changing the ThumbValue property.

Syntax

Object.OnChange ( lThumbIndex, dThumbValue )

The OnChange event syntax has the following parts:

 

Name

Type

Description

Object

ASlider

ASlider control

lThumbIndex

Val Long

An integer specifying the index of the thumb on the control.

dThumbValue

Val Double

The new value of the thumb.

Comments

The index is zero-based.

Example

The following is an example of this event for the second thumb:

sld1.OnChange(1,dThumbValue)

{

ck1.Caption="Change noted"

}

Applies to

ASlider

See Also

AThumb, AThumbValue, InsertThumb, RemoveThumb, ThumbActive, ThumbCount, Thumbs