xxx::Scroll

 

Tool_Brush::Scroll

Tool_Tag::Scroll

Tool_Histo::Scroll

Tool_Propagate::Scroll

Tool_DB_Class::Scroll

Tool_DB_File::Scroll

 

This method is used to update the tool to reflect a mouse wheel scroll.

 

 

Syntax

 

int  Scroll(

          int count

) ;

 

 

Parameters

 

count

          Number of scroll click.

 

 

Return value

 

This method returns 0 if an error occurred, 1 otherwise.

 

 

Remarks

 

The method is usually called from within your Ctrl_Scroll() function. The parameter "count" is the one received as argument by the function.

 

 

Requirements

 

Header:

          TomoVision_Util.hpp

          TomoVision_Tools.hpp

          Tool_work.hpp

 

Library:

          TomoVision_Util.lib

          TomoVision_Tools.lib

          SliceO_Tools.lib

 

 

Example

 

// --- Interface tools ---

static          Boxs          box_box ;

 

// --- for TAG Selection Tool ---

static          Boxs          box_tag ;

static          Tool_Tag          tool_tag( TOOL_TAG_LOCK_AS_ENABLE ) ;

 

...

 

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

{

          // --- TAG Selection Tool ---

          if ( box_tag.Select( KEY_QUERY ) ) {

              tool_tag.Scroll( count ) ;

              return( 1 ) ;

          }

 

          return( 0 ) ;

}

 

 

See also