回复 1楼fzslai的帖子
需要把tab健默认的事件(MoveToNextColumnWrap)取消.
这段代码可试试:
- FarPoint.Win.Spread.SheetView shv = fpSpread1.ActiveSheet;
- FarPoint.Win.Spread.InputMap im = new FarPoint.Win.Spread.InputMap();
- FarPoint.Win.Spread.Keystroke k = new FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None);
-
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
- im.Put(k, SpreadActions.None);
- im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused);
- im.Put(k, SpreadActions.None);
复制代码 |