Valuators::Scrool

 

This method update the value of "Cur_Value" to reflect a mouse wheel scroll.

 

 

Syntax

 

float          Scroll(

          int val

) ;

 

 

Parameters

 

val

          Number of scroll click.

 

 

Return value

 

return the new value of the Cur_Value variable.

 

 

Remarks

 

The value of "Cur_Value" variable is updated automatically, but not the graphics. You need to call "Adjust" for the graphic to reflect the new value.

 

The variable Cur_Value will be incremented by "count * Inc" if the variable Inc is not null, otherwise the variable will be increment by 1/50 the range Max_Value-Min_Value for each count.

 

 

Requirements

 

Header:

          TomoVision_Util.hpp

          TomoVision_Tools.hpp

 

Library:

          TomoVision_Util.lib

          TomoVision_Tools.lib

 

 

Example

 

static          Valuators          demo ;

 

extern "C" __declspec(dllexport) int          Ctrl_Scroll( HWND wnd, int count, short x, short y )

{

          // ------------------------------------------------

          if ( demo.Select( KEY_QUERY ) ) {

              demo.Scroll( -count ) ;

              return( 1 ) ;

          }

 

          return( 0 ) ;

}

 

See also