简而言之,如何取得当前右击sheetTab的事件?
- private void fpSpread1_MouseDown(object sender, MouseEventArgs e)
- {
- if ((e.Button == System.Windows.Forms.MouseButtons.Right) && (fpSpread1.HitTest(e.X, e.Y).Type == FarPoint.Win.Spread.HitTestType.TabStrip))
- {
- fpSpread1.ActiveSheetIndex = fpSpread1.HitTest(e.X, e.Y).TabStripInfo.Sheet;
- fpSpread1.ContextMenuStrip = conMenuTab;
- conMenuTab.Show(fpSpread1, e.Location);
- }
-
-
- }
复制代码
我用这段代码,效果不好! |