Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[?/C++] Edit box receiving TAB key

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Sun Mar 22, 2009 3:33 pm    Post subject: [?/C++] Edit box receiving TAB key Reply with quote

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
View user's profile Send private message Visit poster's website
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Mar 22, 2009 4:23 pm    Post subject: Reply with quote

i guess you can put a case for wm_keydown if it is vk_tab in your dialogproc function
Back to top
View user's profile Send private message
talkerzero
Grandmaster Cheater
Reputation: 1

Joined: 24 Jul 2008
Posts: 560
Location: California

PostPosted: Sun Mar 22, 2009 6:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Sun Mar 22, 2009 7:01 pm    Post subject: Re: [?/C++] Edit box receiving TAB key Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites