当前位置: X题卡 > 所有题目 > 题目详情

在以下事件过程中,可以在用户按下鼠标右键时,显示一个上边框,以鼠标当前位置为心的弹出式菜单,而且这个弹出式菜单还可以识别右键对菜单命令的选择,相应的选项;

查看本题答案

你可能感兴趣的试题

在屏幕的不同区域上单击鼠标右键时,可以显示不同的快捷菜单  在执行PAN或ZOOM命令期间不可以显示快捷菜单  可以使用自定义(CUI)文件来自定义快捷菜单  在绘图区域单击鼠标右键时,如果选定了一个或多个对象,将显示编辑快捷菜单  
按下鼠标左键时,在窗体上显示“检查按键”  按下鼠标右键时,在窗体上显示“检查按键”  同时按下鼠标左、右键时,在窗体上显示“检查按键”  不论做何种操作,窗体上都不会显示  
左键  右键  同时按下左键和右键  按什么都不显示  
LeftClick  DblClick  Click  RightClick  
将鼠标移到文本框的边框上,当鼠标指针变为四个方向的小箭头时,按下鼠标左键并拖动鼠标  将鼠标移到文本框的边框上,当鼠标指针变为四个方向的小箭头时,按下鼠标右键并拖动鼠标  将鼠标移到文本框边框上的选择句柄上,当鼠标指针变为双向的小箭头时,按下鼠标左键并拖动鼠标  将鼠标移到文本框边框中的文字上,按下鼠标右键并拖动鼠标  
左键、中间键和右键  左键、右键和中间键  左键、右键和同时按下左右键  中间键、左键和右键  
Private Sub Form _ Mouse Up(Button As Integer,Shift AS Integer,_                 X As Single,Y As Singl    If Button=2 Then      PopupMenu mnuEdit,vbPopupMenuCenterAlign Or_        vbPopupMenuRightButton,X,Y,mnuEditOpen    End If  End Sub  Private Sub Form _ MouseUp(Button AS Integer,Shift AS Integer,_                X As Single,Y As Singl    If Button=2 Then      PopupMenu mnuEdit,    End If  End Sub  Private Sub Form _ MouseUp(Button AS Integer,Shift AS Integer,_                X As Single,Y As Singl    PopupMenu mnuEdit,vbPopupMenuCenterAlign Or_           vbPopupMenuRightButton  End Sub  Private SUb Form _ MouseUp(Button AS Integer,_                Shift As Integer,X As Single,Y As Singl    If Button=2 Then         PopupMenu mnuEdit,2    End If  End Sub  
将鼠标移到文本框的边框上,当鼠标指针变为四个方向的小箭头时,按下鼠标左键并拖动鼠标  将鼠标移到文本框中的文字上,按下鼠标右键并拖动鼠标  将鼠标移到文本框边框上的选择句柄上,当鼠标指针变为双向的小箭头时,按下鼠标左键并拖动鼠标  将鼠标移到文本框边框上的选择句柄上,当鼠标指针变为双向的小箭头时,按下鼠标右键并拖动鼠标  
左键  右键  同时按下左键和右键  按什么都不显示  
左键  右键  同时按下左键和右键  按什么都不显示  
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  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  Private Sub Form _ MouseUp(Button AS Integer,Shift AS Integer,_                 X As Single,Y As Single)     PopupMenu mnuEdit,vbPopupMenuCenterAlign Or_            vbPopupMenuRightButton   End Sub  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  
按下键盘上的一个ANSI键  释放键盘上的一个ANSI键  单击鼠标左键  单击鼠标右键  
MouseUp事件是鼠标向上移动时触发的事件  MouseUp事件过程中的x,y参数用于修改鼠标位置  在MouseUp事件过程中可以判断用户是否使用了组合键  在MouseUp事件过程中不能判断鼠标的位置  
同时按下Shift键和鼠标左键  同时按下Shift键和鼠标右键  同时按下Ctrl、Alt和鼠标左键  同时按下Ctrl、Alt和鼠标右键  
左键、中间键和右键  左键、右键和中间键  中间键、左键和右键  左键、右键和同时按下左右键  

热门试题

更多