1. 例如双击单元格会进入编辑状态,那么Cancel 后就取消了这些默认行为。
2. 第二点,可以设置Tab Key 的行为,默认是移动下一个单元格,设置为None,可以直接跳转下一个control
Dim im1 As FarPoint.Win.Spread.InputMap
Dim im2 As FarPoint.Win.Spread.InputMap
im1 = Fp.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
im2 = Fp.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
im1.Put(New FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
im2.Put(New FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None), FarPoint.Win.Spread.SpreadActions.None)
|