从只读控件中删除选项卡索引 [英] To remove tab index from readonly controls

查看:70
本文介绍了从只读控件中删除选项卡索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

简而言之,我更新鲜:

我的问题:
方案:我有5个文本框,第3个文本框为只读.
光标在textbox1中.
当用户单击选项卡时,光标将从textbox1移至textbox2.
当再次单击该选项卡时,由于textbox3为只读,因此光标现在应从textbox2移至textbox4.

Hi Everyone,

I''m a fresher, to be brief:

My Question:
scenario: I have 5 textboxes and the 3rd textbox is readonly.
Cursor is in textbox1.
When a user hit a tab, cursor moves from textbox1 to textbox2.
When the tab is hit again, now the cursor should move from textbox2 to textbox4 since textbox3 is readonly.

How can I achieve this?

推荐答案

设置控件的Tab索引属性以反映您想要的顺序.

还要在只读文本框中将控件的TabStop属性设置为false.
Set the Tab index property of the controls to reflect the order you would like.

Also set the TabStop property of the control to false on the read only text box.


只需分配Tab顺序:
因此...

Just assign the Tab order:
Thusly...

<form>
  <input type="text" name="TextBox1" tabindex=1 /><br />
  <input type="text" name="TextBox2" tabindex=3 /><br />
  <input type="text" name="TextBox3" tabindex=2 /><br />
</form>



如您所见,它从1变为3到2.

另外,请参见 [



As you see it goes from 1 to 3 to 2.

Also, see This[^]
article from the CP Archives


这篇关于从只读控件中删除选项卡索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆