Documentation for Win32lib v0.60.6
Table of Contents

Updown Control

These routines let you manage the attributes of the UpDown control.


  • proc setAcceleration( integer id, sequence Times )   Set the rate of change for an UpDown control
  • proc setBuddy( id, buddy )    Set the buddy control of an UpDown control

    Documentation for Win32lib v0.60.6
    Table of Contents

    [proc]
    setAcceleration
    ( integer id, sequence Times )

    Set the rate of change for an UpDown control

    Category: Updown Control

    The UpDown control specified by id will change it's values while the user holds down the mouse button. You can alter the rate of the change by using this routine.
    The Times parameter is a list of pairs of values, in which the first of a pair is the number of seconds to elapse (from the time the button was pressed) before changing, and the second is the (positive) increment to change the current value by.

    Example:

          setAcceleration(myUpDown, {  {1,2}, {3,4}, {5, 8}, {7,16} } )
    

    See Also: setBuddy


    Documentation for Win32lib v0.60.6
    Table of Contents

    [proc]
    setBuddy
    ( id, buddy )

    Set the buddy control of an UpDown control

    Category: Updown Control

    See Also: setAcceleration