要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。 下面能正确实现上述功能的事件过程是

admin2015-11-24  27

问题 要求当鼠标在图片框P1中移动时,立即在图片框中显示鼠标的位置坐标。  下面能正确实现上述功能的事件过程是

选项 A、Private Sub P 1 MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
Print X,Y
End Sub
B、Private Sub P 1 MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Picture.PrintX,Y
End Sub
C、Private Sub P1 MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
P1.Print X,Y
End Sub
D、Private Sub Form ,_MouseMove(Button As Integer,Shift As Integer X As Single Y As Single)
P1.Print X,Y
End Sub

答案C

解析 在图片框中移动鼠标触发的事件是P1 MouseM0ve事件。在事件中控制在图片框中输出坐标。
转载请注明原文地址:https://kaotiyun.com/show/FRLp777K
0

最新回复(0)