Selects::Read

 

This method is used to obtain the results of the mouse action.

 

 

Syntax

 

int  Read(

          void 

) ;

 

 

Parameters

 

This method does not have a parameter.

 

 

Return value

 

return "Cur_Value", the index of the button currently displayed by the tool.

 

 

Remarks

 

 

Requirements

 

Header:

          TomoVision_Util.hpp

          TomoVision_Tools.hpp

 

Library:

          TomoVision_Util.lib

          TomoVision_Tools.lib

 

 

Example

 

static          Selects          demo ;

 

extern "C" __declspec(dllexport) int          Ctrl_Click( HWND wnd, int up_down, short x, short y )

{

 

          // --- We only want the key press, not the key release ---

          if ( ! up_down ) {

              return( 0 ) ;

          }

 

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

          // We received a mouse click, now we try to find in

          // which tool the click was.  For this we use the

          // "select" method.

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

          if ( demo.Select( up_down ) ) {

              // --- which button is pressed ? ---

              int ret = demo.Read() ;

 

              return( 1 ) ;

          }

          return( 0 ) ;

}

 

See also