制表符顺序以动态编辑框控件 [英] Tab Order to Dynamic Edit Box Control

查看:102
本文介绍了制表符顺序以动态编辑框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以让我知道如何为动态编辑框控件实现制表符顺序吗?

我正在使用群组"框.在组框"中,基于条目,我创建编辑框".一些编辑框是只读的.现在,我想使用关键字的"Tab"键在编辑框中上下移动.

知道了,我该怎么办?

谢谢,
Anshul

Can anyone let me know about how to implement tab order for dynamic edit box control?

I am using Group box. In Group Box, based on entries, I creating Edit Box. Some of edit boxes are read-only. Now I would like to move up-down in edit box by using "Tab" key of keyword.

Any idea, how can I do this?

Thanks,
Anshul

推荐答案

如果要为编辑框动态设置选项卡顺序,则应查看
If you mean to set the tab order dynamically for an edit box you should take a look at SetWindowPos[^] and the parameter hWndInsertAfter. With that you should be ready to go.

If this is not what you need, please, explain it a little bit more.

Good luck!


http://functionx.com/visualc/collections/cstringlist.htm
通过此链接
http://functionx.com/visualc/collections/cstringlist.htm
go through this link


嗯...我没有干净的解决方案,

但您可以尝试将所有资源和动态子项的HWND插入数组中的表面上,
提供表面的索引成员和表面的KeyDown反应,

会驱动环索引并在已索引的HWND处发送WM_SETFOCUS ...:)
Hm... I have no clean solution,

but you could try to insert HWNDs of all your resource and dynamic childs on the surface in an array,
provide the index-member for the surface and the KeyDown-reaction for the surface,

that would drive the ring index and send the WM_SETFOCUS at the indexed HWND... :)


这篇关于制表符顺序以动态编辑框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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