找回密码
 立即注册

QQ登录

只需一步,快速开始

lnp119112555

中级会员

12

主题

27

帖子

913

积分

中级会员

积分
913

活字格认证

lnp119112555
中级会员   /  发表于:2014-5-21 13:28  /   查看:2463  /  回复:0
通过以下代码已实现按Tab键时Focus到下一个控件,如何实现Shift+Tab回到上一个TabIndex的控件上面

Dim im As New FarPoint.Win.Spread.InputMap()
        Dim tab As New FarPoint.Win.Spread.Keystroke(Keys.Tab, Keys.None)
        Dim enter As New FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None)
        im = conItem.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
        im.Put(tab, SpreadActions.None)
        im.Put(enter, SpreadActions.MoveToNextRow)
        im = conItem.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenFocused)
        im.Put(tab, SpreadActions.None)
        im.Put(enter, SpreadActions.MoveToNextRow)

0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部