home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / programm / misc / 5246 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.8 KB  |  53 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Edit window 
  5. Distribution: world
  6. References: <1993Jan21.133335.13502@cs.hw.ac.uk>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 38
  11. Date: Thu, 21 Jan 1993 19:18:42 +0000
  12. Message-ID: <727643922snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1993Jan21.133335.13502@cs.hw.ac.uk> onar@cee.hw.ac.uk writes:
  16.  
  17. >Hi, hope someone can help a stupid Norwegian!
  18. >
  19. >I have a multiline edit window created by WRT resource toolkit.
  20. >The programming is done in pure C using BorlandC 2.0.
  21. >I use this edit window in a dialogbox. The problem is that
  22. >the edit window does not detect the return key, but the
  23. >strange thing is that if I hold down the CTRL key and then press
  24. >the return key, the bastard works!
  25. >What am I doing wrong.
  26. >
  27. >
  28. >Regards
  29. >
  30. >Onar
  31. >
  32. >E-Mail: onar@cee.hw.ac.uk
  33. >
  34.  
  35. you're not doing *anything* wrong - this is the (admitedly strange) way
  36. that a multi-line edit control is *supposed* to work!
  37.  
  38. If you're using Windows 3.1 and you want the <Enter> key to start a new
  39. line in the edit control, you can give the control the ES_WANTRETURN
  40. style.  If you're using Windows 3.0, you have to subclass the control.
  41.  
  42. Best wishes,
  43.  
  44. Chris
  45. -- 
  46. --------------------------------------------------------------------------
  47. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  48. | Warrington, UK                           | BIX: cmarriott              |
  49. |                                          | CIX: cmarriott              |
  50. | Save the whales.  Collect the whole set. | CompuServe: 100113,1140     |
  51. --------------------------------------------------------------------------
  52.  
  53.