Chapter Contents

Previous

Next
Scroll Bar: _getInc

Scroll Bar: _getInc



Returns the number by which the values in the scroll bar's range are incremented


Syntax
Example

Syntax

CALL NOTIFY (scroll-bar-name, '_getInc', increment);

Argument Type Description
increment
N returns the size of the scroll bar's increments


Example

The following example uses a scroll bar to obtain data points between -2.20 to +2.20 in increments of 0.10. A Zoom button, when pressed, halves the current increment value, and an UnZoom button doubles the increment value.

INIT:
   call notify('sbar1','_set_min_',-2.20);
   call notify('sbar1','_set_max_',2.20);
   call notify('sbar1','_set_inc_',0.10);
   sbar1 = 0;
return;

ZOOM:
      /* halve the current increment */
   call notify('sbar1','_get_inc_',inc);
   call notify('sbar1','_set_inc_',inc/2);
return;

UNZOOM:
      /* double the current increment */
   call notify('sbar1','_get_inc_',inc);
   call notify('sbar1','_set_inc_',inc*2);
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.