ObjectDCL Banner

OnScroll Event

Description

Indicates that the mouse capture has been released.

Parameters

nValue
Integer identifying the new value of the control.

AutoLISP Syntax

Each control that throws this event has its handler that takes this generic form:

CopyCode imageCopy Code
(defun c:FormName_ControlName_OnScroll 
                 (nValue [as Integer] /)
     
)

Applies For

AngleSlider, ScrollBar.

Example

CopyCode imageCopy Code
; React to the scroll thumb being moved
(princ c:MyForm_MyControl_OnScroll
                 (nValue /)
     (princ "OnScroll(")
     (princ nValue)
     (princ ")\n")
)