trapping enter key .
-
Hi all, I've developed one dialog base application in which there is an edit box with multiline selection enabled. after entering an text into the edit box, if i click "ENTER" key to get to the next line the application closes up.What could be the reason?? could anyone help me out in this please. Thanks And Regards, Rajeev
-
Hi all, I've developed one dialog base application in which there is an edit box with multiline selection enabled. after entering an text into the edit box, if i click "ENTER" key to get to the next line the application closes up.What could be the reason?? could anyone help me out in this please. Thanks And Regards, Rajeev
Make sure the
ES_WANTRETURN
is set on the edit control. Without this the dialog handles the keystroke and interprets it as a press of the default button (the button with a darker border around it). The dialog editor allows you to set this style. Steve -
Hi all, I've developed one dialog base application in which there is an edit box with multiline selection enabled. after entering an text into the edit box, if i click "ENTER" key to get to the next line the application closes up.What could be the reason?? could anyone help me out in this please. Thanks And Regards, Rajeev
rajeev82 wrote:
if i click "ENTER" key to get to the next line the application closes up.What could be the reason??
Set the
"Want return"
property of the edit box toTRUE
.
Nibu thomas Software Developer
-
rajeev82 wrote:
if i click "ENTER" key to get to the next line the application closes up.What could be the reason??
Set the
"Want return"
property of the edit box toTRUE
.
Nibu thomas Software Developer