简体   繁体   English

使用tabControl的Tab索引

[英]Tab index with tabControl

I have a tabControl control with multiple tabs. 我有一个带有多个选项卡的tabControl控件。 For each tab, I am adding tab index arranging the controls from top to bottom. 对于每个选项卡,我要添加选项卡索引,以将控件从上到下排列。

However, when I click tab during the program the order that the program moves from control to control isn't the order I specified. 但是,当我在程序中单击选项卡时,程序从控件到控件的移动顺序不是我指定的顺序。

Does this have something to do with the tabControl? 这和tabControl有关系吗?

I am using the "tabIndex" property for each control. 我为每个控件使用“ tabIndex”属性。

Edit: Sorry I didn't know about this function, here is what it shows: 编辑:对不起,我不知道此功能,这是它显示的内容:

http://s7.postimage.org/m9burkbx5/Tab_Order.jpg http://s7.postimage.org/m9burkbx5/Tab_Order.jpg

The red arrow is the flow the tab makes. 红色箭头是标签页执行的流程。

With TabOrder tool active, first click on each container controls (eg. the groupboxes) then, if the controls order inside the groupboxes, is not correct, click on each control in the order you desire them. 在激活TabOrder工具的情况下,首先单击每个容器控件(例如,组框),然后,如果控件在组框内的顺序不正确,请按照所需的顺序单击每个控件。
You will see the number change accordingly to your clicks. 您会看到数字随点击次数而变化。 Sometimes happens to click in the wrong order, in this case close the TabOrder tool and reopen to restart again. 有时碰巧单击顺序错误,在这种情况下,请关闭TabOrder工具,然后重新打开以重新启动。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM