如何从编辑框中移出焦点? [英] How to remove focus from the editbox??

查看:83
本文介绍了如何从编辑框中移出焦点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试做以下事情

当我从A到Z按下键时,焦点应设置为编辑框,但是当我按下其他键时,editbox应该不具有焦点..

我不知道如何删除焦点.我不想放置另一个控件并将焦点赋予该控件以从编辑框删除焦点..

帮帮我..

谢谢

I am trying to do following thing

When i press key from A to Z the focus should be set to the edit box, but when i press other key editbox should not have focus..

i don''t know how to remove focus.. I don''t want to put another control and giving focus to that control to remove focus from editbox..

Help me..

Thank you

推荐答案

我认为您需要重点关注.如何创建一个不带tabstop的只读编辑框,它也应该被隐藏.然后,您可以将其作为重点.

如果您试图掩盖特殊字符,使其远离您的控件,则有更好的方法来做到这一点.搜索
I think you need something to give to focus to. How about creating a readonly editbox, without tabstop and it should also be hidden. You could then give it the focus.

If you are trying to mask special characters away from your control, there are better ways of doing this. Search for mask edit[^], and you will find plenty of options.


这篇关于如何从编辑框中移出焦点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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