get_mbutton_sub_pix — 等待鼠标按钮被按下,然后获取亚像素鼠标位置。
get_mbutton_sub_pix( : : WindowHandle : Row, Column, Button)
get_mbutton_sub_pix returns the subpixel accurate image coordinates
of the mouse pointer in the output window and the mouse button pressed.
In addition the state of the modifier keys is returned. The following
values are assigned to the individual buttons and keys:
Left button,
Middle button,
Right button,
Shift key,
Ctrl key,
Alt key.
The sum of the values for all pressed keys added to the value of the
pressed mouse button is returned in Button。
The operator waits until a button is pressed in the output
window. For graphics windows the coordinates Row and
Column are expressed with consideration of the current image part
(see set_part).
If only pixel accurate image coordinates are required, you can use the
operator get_mbutton。
get_mbutton_sub_pix only returns if a mouse button is pressed in
the window.
WindowHandle (输入控制) window → (handle)
窗口句柄。
Row (输出控制) point.y → (real)
Row coordinate of the mouse cursor in the image coordinate system.
Column (输出控制) point.x → (real)
Column coordinate of the mouse cursor in the image coordinate system.
Button (输出控制) integer → (integer)
Mouse button(s) pressed.
get_mbutton_sub_pix 返回值 2 ( H_MSG_TRUE )。
get_mbutton,
get_mposition,
get_mposition_sub_pix
基础