| View previous topic :: View next topic |
| Author |
Message |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Sun Mar 22, 2009 3:33 pm Post subject: [?/C++] Edit box receiving TAB key |
|
|
Whenever I press Tab into my edit box, instead of printing a '\t' (tab), it shifts focus to the next control (in this case a button). How can I make it print the '\t' instead of shifting focus?
If it helps, I'm using a dialog that I made with ResEdit.
|
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Mar 22, 2009 4:23 pm Post subject: |
|
|
| i guess you can put a case for wm_keydown if it is vk_tab in your dialogproc function
|
|
| Back to top |
|
 |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Sun Mar 22, 2009 6:09 pm Post subject: |
|
|
| That won't do, everytime the user press Tab, the edit box will lose focus, have a tab in it again, and regain focus.. and then the whole block in the edit box will be highlighted. No sir, that simply won't do.
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Sun Mar 22, 2009 7:01 pm Post subject: Re: [?/C++] Edit box receiving TAB key |
|
|
| talker0 wrote: | Whenever I press Tab into my edit box, instead of printing a '\t' (tab), it shifts focus to the next control (in this case a button). How can I make it print the '\t' instead of shifting focus?
If it helps, I'm using a dialog that I made with ResEdit. |
Either remove the tab property, or just reset focus on the edit box.
_________________
|
|
| Back to top |
|
 |
|