参考#2的例子试了下,在非编辑模式可以触发KeyDown事件,在编辑模式下不能触发KeyDow事件。
我在KeyDown事件里面想判断是Up或者Down键,然后有逻辑处理,请问有什么建议没有?
Dim im As New FarPoint.Win.Spread.InputMap
im = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.Down, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow)
im = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.Down, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextRow)
|