单项选择题
设已经在菜单编辑器中设计了弹出式菜单mnuStyle,要求程序运行时,当用户在文本框Textl上单击鼠标右键时,能够弹出该菜单,则应使用的事件过程是( )。
A.Private Sub Text1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2 Then PopupMenu mnuStyle End If End Sub
B.Private Sub Textl_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=1 Then PopupMenu mnuStyle End If End Sub
C.Private Sub Textl—MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=2 Then mnuStyle.Show End If End Sub
D.Private Sub Text1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single) If Button=1 Then mnuStyle.Popup End If End Sub