| Table of Contents / Graphics / Mouse | Operators |
get_mbutton — Wait until a mouse button is pressed.
get_mbutton( : : WindowHandle : Row, Column, Button)
get_mbutton returns the pixel accurate image coordinates of the mouse pointer in the output window and the mouse button pressed (Button):
Left button,
Middle button,
Right button.
The operator waits until a button is pressed in the output window. If more than one button is pressed, the sum of the individual buttons' values is returned. For graphics windows the coordinates Row and Column are expressed with consideration of the current image part (see set_part). For text windows the coordinates of the upper left corner are (0,0), while the coordinates of the lower right corner are (window height-1,window width-1) (see open_textwindow).
If subpixel accurate image coordinates are required, you can use the operator get_mbutton_sub_pix.
get_mbutton only returns if a mouse button is pressed in the window.
Window identifier.
Row coordinate of the mouse position in the window.
Column coordinate of the mouse position in the window.
Mouse button(s) pressed.
get_mbutton returns the value 2 (H_MSG_TRUE).
get_mposition, get_mbutton_sub_pix, get_mposition_sub_pix
Foundation
| Table of Contents / Graphics / Mouse | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |