Topic : The ATARI Compendium
Author : Scott Sanders / JAY Software
Version : 1.25 (20/6/2003)
Subject : Documentation
Nodes : 1117
Index Size : 32614
HCP-Version : 6
Compiled on : Atari
@charset : UTF-8
@lang : en
@default :
@help : %About
@options : +g -i -t4 +y +z
@width : 100
View Ref-FileSl_dragy()XCONTROL Utility FunctionsSl_dragx() XCONTROLSyntaxVOID (*xcpb->Sl_dragx)( tree, base, slider, min, max, numvar, foo )
OBJECT *tree;
WORD base, slider, min, max;
WORD *numvar;
VOID (*foo)();
Function Sl_dragx() is called by a CPX when a user clicks on the
horizontal slider 'elevator' of an 'active' slider.
Parameters tree points to an OBJECT tree containing the slider
elements. base is the object index of the slider 'track'.
slider is the object index of the slider 'elevator'.
min specifies the minimum value the slider can represent.
max specifies the maximum value the slider can represent.
numvar points to a WORD containing the value which the slider
represents and which is to be updated as the slider is
moved. foo points to a user-defined routine which is called
each time the slider value numvar is modified. foo may be
NULL if no updating is desired.
Binding (*xcpb->Sl_dragx)( tree, base, slider, min, max,
numvar, foo );
Comments It is appropriate to change the shape of the mouse to
FLAT_HAND while the user is dragging a slider.
See Also Sl_dragy()Group XCONTROL Utility Functions