专注于两个要素 [英] get focus on two elements

查看:90
本文介绍了专注于两个要素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
您知道我们如何才能使表单必须将一个焦点放在另一个自身上,我的意思是像osk(在屏幕键盘上)一样,当您按下按钮时,焦点不仅在osk屏幕上,而且永远在最前面
谢谢,

Hi there
Do you know how can we get forms have to focus one on itself and one on another,I mean something like osk(on screen keyboard) when you press a button on it the focus is not only on the osk screen and it''s always on top
thanks

推荐答案

好吧,不,两个项目不能成为焦点.

但是,您可以做的是告诉osk单击该对象时应具有的焦点.为此,您可以获取要将键盘输入发送到的窗口的句柄,然后使用SendMessage的PostMessage

在此处查看论坛:虚拟键盘-C# [
well, no, two items cannot have the focus.

But, what you can do is tell the osk what should have the focus when it is clicked. To do this, you can get the handle of the window that you want to send the keyboard input to, and then use a PostMessage of SendMessage

check out the forum here: Virtual Keyboard- C#[^]

There are a couple of solutions. There is also a zip file called BensOSK towards the bottom thirds that is interesting.


谢谢,但是当您要键入不是文本编辑程序且有很多内容的区域时,不能输入的焦点元素的数量
轻松尝试输入地址栏,即您可以了解我的意思
非常感谢
Thanks but when you want to type in a area that is not a text editing program and have lot''s of focus elements it cant type
easily try to type into address bar in ie you can find out what I mean
thanks so much


这篇关于专注于两个要素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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