•  Back 
  •  XCONTROL Utility Functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
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-FileXCONTROL Utility Functions
Sl_size()                                                          XCONTROL

Syntax

VOID (*xcpb->Sl_size)( tree, base, slider, num_items, visible, direction,
                       min_size )
OBJECT *tree;
WORD base, slider, num_items, visible, direction, min_size ;

Function      Sl_size() adjusts the size of the slider 'track' relative to
              the size of the slider 'elevator'.

Parameters    tree points to the OBJECT tree containing the slider
              elements. base is the object index of the slider 'track'.
              slider is the object index of the slider 'elevator'.
              num_items is the total number of items represented by the
              slider. visible is the number of items actually seen by the
              user. direction specifies the direction of the slider as
              either VERTICAL (0) or HORIZONTAL (1). min_size represents
              the minimum pixel size of the adjusted slider elevator.

Binding       (*xcpb->Sl_size)( tree, base, slider, num_items, visible,
                                direction, min_size );

Comments      This function does not redraw the slider.

Group         XCONTROL Utility Functions