我添加了以下菜单和代码可以正常显示右键菜单- Private Sub A_Click(Index As Integer)
- fpSpread1.SetText fpSpread1.ActiveCol, fpSpread1.ActiveRow, "A"
- End Sub
- Private Sub B_Click()
- fpSpread1.SetText fpSpread1.ActiveCol, fpSpread1.ActiveRow, "B"
- End Sub
- Private Sub C_Click()
- fpSpread1.SetText fpSpread1.ActiveCol, fpSpread1.ActiveRow, "C"
- End Sub
- Private Sub fpSpread1_RightClick(ByVal ClickType As Integer, ByVal Col As Long, ByVal Row As Long, ByVal MouseX As Long, ByVal MouseY As Long)
- PopupMenu mnuFile
- End Sub
复制代码
代码.png
(109.83 KB, 下载次数: 255)
|