在以下事件过程中,可以在用户按下鼠标右键时,显示一个上边框,以鼠标当前位置为中心的弹出式菜单,而且这个弹出式菜单还可以识别右键对菜单命令的选择,相应的选项是( )。
A.Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button=2 Then
PopupMenu mnuEdit, vbPopupMenuCenterAlign Or _
vbPopupMenuRightButton, X, Y, mnuEditOpen
End If
End Sub
B.Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button=2 Then
PopupMenu mnuEdit,
End If
End Sub
C.Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
PopupMenu mnuEdit, vbPopupMenuCenterAlign Or _
vbPopupMenuRightButton
End Sub
D.Private Sub Form_MouseUp(Button As Integer , _
Shift As Integer, X As Single, Y As Single)
If Button=2 Then
PopupMenu mnuEdit, 2
End If
End Sub
第1题:
A.鼠标按下的键,1表示左键,2表示中键,3表示右键
B.鼠标当前位置的y坐标,单位与轴域坐标相同
C.鼠标当前位置的x坐标,单位与轴域坐标相同
D.鼠标经过轴域时表示当前Axes轴域实例
第2题:
编写如下事件过程:程序运行后,为了在窗体上输出“BBBB”,应执行的操作为( )。
A. 同时按下Shift键和鼠标左键
B. 同时按下Shift键和鼠标右键
C. 司时按下Ctrl、Alt键和鼠标左键
D. 同时按下Ctrl、Alt键和鼠标右键
第3题:
动态HTML事件“OnmouseOver”表示()
A、用户将鼠标移动到页面元素之上时触发该事件
B、用户移动鼠标时触发该事件
C、用户释放鼠标左键时触发该事件
D、用户按下鼠标左键时触发该事件
第4题:
在以下事件过程中,可以在用户按下鼠标右键时,显示一个上边框,以鼠标当前位置为心的弹出式菜单,而且这个弹出式菜单还可以识别右键对菜单命令的选择,相应的选项;
A.Private Sub Form. _ Mouse Up(Button As Integer,Shift AS Integer,_ X As Single,Y As Single) If Button=2 Then PopupMenu mnuEdit,vbPopupMenuCenterAlign Or_ vbPopupMenuRightButton,X,Y,mnuEditOpen End If End Sub
B.Private Sub Form. _ MouseUp(Button AS Integer,Shift AS Integer,_ X As Single,Y As Single) If Button=2 Then PopupMenu mnuEdit, End If End Sub
C.Private Sub Form. _ MouseUp(Button AS Integer,Shift AS Integer,_ X As Single,Y As Single) PopupMenu mnuEdit,vbPopupMenuCenterAlign Or_ vbPopupMenuRightButton End Sub
D.Private SUb Form. _ MouseUp(Button AS Integer,_ Shift As Integer,X As Single,Y As Single) If Button=2 Then PopupMenu mnuEdit,2 End If End Sub
第5题:
以下说法中正确的是( )。
A.MouseUp事件是鼠标向上移动时触发的事件
B.MouseUp事件过程中的X,Y参数用于修改鼠标位置
C.在MouseUp事件过程中可以判断用户是否使用了组合键
D.在MouseUp事件过程中不能判断鼠标的位置