This method update the tools graphics and return the value 1 if the mouse pointer is over the tool.
Syntax
int Select(
int click
) ;
Parameters
click
You must provide an integer that gives the value of the mouse buttons. For the "Ctrl_Click" and "Ctrl_Motion" DLL functions, this is the variable "up_down". For the "Ctrl_Scroll" function, since we have no mouse action as such, we will use the macro KEY_QUERY as "click" parameter.
Return value
This method returns 1 if the cursor is over the tool, 0 if not.
Remarks
This method has 2 functions: it tells you if the cursor is over the tool, and it refresh the graphics to mirror the mouse actions. When the mouse is over the tool, the tool graphics change to reflect this. When the mouse is over the tool, its graphic bitmap will be given by the pointer Graph_Select, when not over the tool it will be Graph_Normal.
Also some tools are composed of more tools, these are updated with the "select" call. For example, a list may have a slider to scroll its buttons, this slider and the button scrolling are done during the "select" call.
This method must be called for each tool each time there is a mouse action (click, scroll or motion).
Requirements
Header:
TomoVision_Util.hpp
TomoVision_Tools.hpp
Library:
TomoVision_Util.lib
TomoVision_Tools.lib
Example
See also