简体   繁体   English

TAB不会进入我赢表中嵌入的ActiveX控件中

[英]The TAB doesn't go into the ActiveX control embedded on my win form

My co-worker created a Qt widget under Linux which he wrapped into an ActiveX control just so I can use it in my Win application UI. 我的同事在Linux下创建了一个Qt小部件,他将其包装到ActiveX控件中,以便可以在Win应用程序UI中使用它。 I registered and added that ActiveX control in my Visual Studio toolbox and added onto my win form. 我在Visual Studio工具箱中注册并添加了ActiveX控件,并添加到了我的获胜表单中。

Everything is fine, but when launching my form and clicking TAB it passes the focus to the ActiveX control and then to other controls on the win form however the TAB doesn't go into the ActiveX control to do tab-stop within the ActiveX control, which itself consists of some other controls. 一切都很好,但是当启动我的表单并单击TAB时,它将焦点传递给ActiveX控件,然后传递给win表单上的其他控件,但是TAB不会进入ActiveX控件以在ActiveX控件内进行制表位停止,它本身包含其他一些控件。

How, can I make the tab-stop to happen within the ActiveX control so I can tab from control to control within the ActiveX control as well? 如何在ActiveX控件中使制表符停止发生,以便在ActiveX控件中也可以在控件之间制表符? Is there any known way? 有什么已知的方法吗?

If you dont want a button or some element on your form to be effected by pressing TAB just add this.MyButton.TabStop = false; 如果您不希望通过按下TAB来影响表单上的按钮或某些元素,只需添加this.MyButton.TabStop = false; to your Designer of that specific form. 给您的特定形式的设计师。 All it does is disable (in this case "MyButton") to be selected by pressing TAB. 通过按TAB可以禁用所有操作(在本例中为“ MyButton”)。 I hope this fixes your problem. 我希望这可以解决您的问题。

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

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