本帖最后由 reloveed@ 于 2024-7-13 11:47 编辑
[size=14.6667px]有没有办法,当焦点停留在Spread的cell中,按回车键,
[size=14.6667px]焦点移动到下一个cell中,并触发之前cell的LeaveCell事件
[size=14.6667px]
[size=14.6667px]目前我是在inputMap里加的焦点移动处理
Dim im As FarPoint.Win.Spread.InputMap
im = Spr_Meisai.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextColumnWrap)
im.Parent.Put(New FarPoint.Win.Spread.Keystroke(System.Windows.Forms.Keys.[Return], System.Windows.Forms.Keys.None), FarPoint.Win.Spread.SpreadActions.StartEditing)
im = Spr_Meisai.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.MoveToNextColumnWrap)
[size=14.6667px]im.Parent.Put(New FarPoint.Win.Spread.Keystroke(System.Windows.Forms.Keys.[Return], System.Windows.Forms.Keys.None), FarPoint.Win.Spread.SpreadActions.StartEditing)
[size=14.6667px]
[size=14.6667px]谢谢
|
|