Skip to main content
GameDev.net gamedev.net
🔒 Locked

User Input in Edit Box

Started by LordN Jul 23, 2003 at 12:49 PM 0 replies 300+ views
Original Post
LordN
LordN
I am trying to create a simple network chat program. To get the user input, I created a single line edit box. However, I can not figure out how to tell if the user presses the enter key in the box. When the user presses enter, I want to save the contents of the box to a string, then clear the box. P.S. I am using Microsoft Visual C++ 6.0
felisandria
felisandria
Overload EN_KILLFOCUS for that edit box.

Or if you don't want to save the stuff when leaving the box otherwise, set the edit box to "want return" and overload EN_CHANGE, watching for the enter input to trigger your logic.

-fel


[edited by - felisandria on July 23, 2003 2:12:01 PM]
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.