Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 26-Apr-11 0:07am
v2

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!
 
Share this answer
 
Comments
AJ83 26-Apr-11 6:07am    
Please do have look on question again, I have updated it.
Joan M 26-Apr-11 6:15am    
So you are creating some editboxes dinamically. Once you've creted them you want to be able to jump from one editbox to another control using the TAB key in your keyboard. In order to do that, once you've created the control, you will need to adjust its TAB ORDER using the suggested function. After having done that you will be able to jump from one control to the other one by pressing TAB.

Good luck again.
AJ83 26-Apr-11 6:18am    
You understood correctly, what I am trying for. But I do not know how to do that. Can you please send me any example or sample code?
http://functionx.com/visualc/collections/cstringlist.htm
go through this link
 
Share this answer
 
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... :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900