设置标签索引 [英] Setting Tab Index

查看:114
本文介绍了设置标签索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置控件的选项卡索引,其中一些控件位于splitcontainer.panel1中,有些控件位于splitcontainer.panel2中.
当前,tabIndex首先分配给SplitContainer.Panel1中的所有控件,然后转到SplitContainer.panel2

How to set tab index of controls, some of which are in splitcontainer.Panel1 & some in SplitContainer.Panel2.
Currently, tabIndex first get assign to all controls in SplitContainer.Panel1 & then goes to SplitContainer.panel2

推荐答案

hi,
实际上,您可以先为所有父母分配标签索引. (我是说根容器),那么您可以一个个地给孩子分配索引.
在您的示例中,将0分配给panel1,然后从0再次分配给panel1的所有子代.而不是将1分配给panel2并继续.

面板1-> 0
Panel1_Child1-> 0
Panel1_Child2-> 1
Panel1_Child3-> 2
面板2-> 1
Panel2_Child1-> 0

然后继续.

actually you can first assign tab index for all parents. ( I mean root containers) then you can one by one assign index to the children.
In your example assign 0 to panel1 and then assign again from 0 to all children of the panel1. than assign 1 to panel2 and go on.

Panel1 -> 0
Panel1_Child1 -> 0
Panel1_Child2 -> 1
Panel1_Child3 -> 2
Panel2 -> 1
Panel2_Child1 -> 0

and go on.


这篇关于设置标签索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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