在选项卡控件附加的子对话框中的字段之间进行选项卡 [英] Tabbing between fields in a sub-dialog attached to tab control

查看:100
本文介绍了在选项卡控件附加的子对话框中的字段之间进行选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,



在普通的Windows对话框中,您可以在设计过程中设置标签顺序,然后您可以使用标签在该顺序中的字段之间移动密钥。



当有关对话框本身是一个附加到选项卡控件的子对话框时,这似乎不可能以简单的方式进行 - Tab键字符是伴随着粗鲁的噪音拒绝了。



那么当对话框是标签控件上的子对话框时,如何在字段之间启用标签?



非常感谢提前,

迈克



我尝试了什么:



试图捕获WM_CHAR - 失败。 Google搜索。

解决方案

您无法从嵌入控件的设计空间中为嵌入式控件的子控件设置Tab键顺序:已修复设计时间和部分嵌入式控件代码。



设置子对话框在其自己的设计区域中的Tab键顺序 - 应该在父容器中遵守。


感谢您的回复。我已经在自己的设计空间中设置了子对话框的Tab键顺序,我希望在父容器中得到尊重 - 但是当父对话框加上它的Tab Control(显示子对话框)在屏幕上时,子对话框永远不会看到我输入的任何Tab字符。我认为我必须继承某些东西和/或将制表符转发到我的子对话框 - 但是如何?



非常感谢

Mike

Greetings,

In an ordinary Windows dialog you can set the tab-order during design, then you can move between the fields in that order by using the Tab key.

That does not seem to be possible in a straightforward manner when the dialog concerned is itself a sub-dialog attached to a Tab Control - the Tab key character is rejected with an accompanying rude noise.

So how can I enable tabbing between fields when the dialog is a sub-dialog on a Tab Control?

Many thanks in advance,
Mike

What I have tried:

Tried to capture WM_CHAR - failed. Google search.

解决方案

You can't set the tab order for an embedded control's sub-controls from the design space that the control is embedded in: that is fixed at design time and part of the embedded controls code.

Set the tab order for the sub dialog in it's own design area - that should be respected in the parent container.


Thanks for the reply. I have set the tab order of the sub-dialog in its own design space and I would expect that to be respected in the parent container - but when the parent dialog plus its Tab Control (that displays the sub-dialog) are on screen, the sub-dialog never gets to see any Tab character I enter. I presume I have to subclass something and/or relay the tab character to my sub-dialog - but how?

Many thanks
Mike


这篇关于在选项卡控件附加的子对话框中的字段之间进行选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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