Chat on IRC |
Switching edit boxes with Tab
Posted by ScaryGuy [send private reply] at March 17, 2002, 09:24:34 PM
How do I switch edit boxes when the tab is pressed??
Posted by gian [send private reply] at March 18, 2002, 01:57:12 PM
That should be standard windows behavior....
Posted by ScaryGuy [send private reply] at March 18, 2002, 07:58:11 PM
well, unfortunatly its not, its like the main window loses focus, and I can't grab the WM messages from the edit boxes.
Posted by taubz [send private reply] at March 18, 2002, 09:52:04 PM
You may have to set a Window's style on the edit boxes so that it can receive the focus or is tab-stoppable. (Educated guess.)
- taubz
Posted by ScaryGuy [send private reply] at March 22, 2002, 01:47:41 AM
Thanks all for your help, I've set the parent window EX style to WS_EX_CONTROLPARENT and the childs to WS_TABSTOP, yet nothing still happens. I just get the default beep.
Posted by miken [send private reply] at March 23, 2002, 11:31:29 AM
Assuming you're using MS Visual C++ (and even if you're not), you can set up the tab order in the resource file for the dialog (assuming you're using a dialog ;). In the editor, just click on Layout->Tab Order then click on the controls in the order you want them to cycle. If you're just editing the resource file, I'm not sure what the syntax is, but I'm sure you can look it up on the Internet.
Posted by ScaryGuy [send private reply] at March 26, 2002, 04:47:37 PM
Ya, unfortunatly I aint usin a dialog. I'm plain ole hand coding in some edit boxes into the main window.
Register as a new user | |||||||||