使用Tab控件时的Tab顺序 [英] Tab order when using Tab control

查看:105
本文介绍了使用Tab控件时的Tab顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个带有Tab控件的主对话框.在选项卡上单击时,当在选项卡上获得焦点时,下一个焦点应进入子对话框的第一个控件(当用户选择一个选项卡时可见).但是,这没有发生.而是将焦点移至主对话框本身中的控件.

Hi,
I have a main dialog with Tab control. On tab click, when focus obtained on the tab, the next focus should be into the first control of the child dialog(which is visible when user selects a tab). But this is not happening. Instead focus moves to the control in the main dialog itself.

How can i set focus to the child dialog, once focussed on the tab?

推荐答案

请注意,不仅每个终端控件都具有选项卡索引,而且所有容器都具有该选项卡索引,该如何将焦点设置到子对话框? .您确实需要您想要的东西,但是请确保您的选项卡控件和每个选项卡页面的选项卡索引均为0.选项卡停止位置首先在较高层次结构之间移动,然后在所选容器的子级之间向下移动,依此类推.

—SA
Pay attention that not only every terminal controls have tab index, but also all containers do. You really need to what you want, but make sure that your tab control and each tab page have tab index 0. Tab stop goes between higher levels of hierarchy first, then go down the children of the selected container, and so on.

—SA


这篇关于使用Tab控件时的Tab顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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