Chapter Contents

Previous

Next
Scroll Bar: _setSize

Scroll Bar: _setSize



Assigns the width, in increment units, of a scroll bar's thumb


Syntax
Details
Example

Syntax

CALL NOTIFY (scroll-bar-name, '_setSize', thumb-size);

Argument Type Description
thumb-size
N specifies the width of the scroll bar's thumb, in increment units


Details

The _setSize method defines the amount of change made to the value of the scroll bar when the user clicks to either the right or left of the thumb.


Example

The following example uses a scroll bar to obtain data points within the range of -2.20 to +2.20 in increments of 0.10. This example defines a page size of 0.25.

INIT:
   call notify('sbar1','_set_min_',-2.20);
   call notify('sbar1','_set_max_',2.20);
   call notify('sbar1','_set_inc_',0.10);
   call notify('sbar1','_set_size_',5);
   sbar1=0;   \
   svalue=sbar1;
return;
/* */
MAIN:
      /* The numeric text entry field named */
      /* SVALUE shows the numeric value of  */
      /* the scroll bar.  */
   svalue=sbar1;
return;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.