home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 17876 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  2.2 KB

  1. Path: sparky!uunet!utcsri!woodbine.csri.toronto.edu!ambler
  2. Newsgroups: comp.lang.c++
  3. From: ambler@csri.toronto.edu (Scott Ambler)
  4. Subject: Help! Multi-line TEdit
  5. Message-ID: <92Dec12.173057est.232@woodbine.csri.toronto.edu>
  6. Originator: root@woodbine.csri.toronto.edu
  7. Organization: CSRI, University of Toronto
  8. Date: 12 Dec 92 22:31:13 GMT
  9. Lines: 43
  10.  
  11. Hi!.  I'm using the Borland C++ 3.1 with Applications Framework.
  12.  
  13. What I'm trying to do:
  14. I'm trying to use a multi-line TEdit in a dialog box, to no avail.
  15. It's a Windows application.  The dialog box has a TEdit field and
  16. two buttons (OK & Cancel).  I'm eventually going to have more
  17. controls on the panel, but I thought I'd start small.
  18.  
  19. Problem:
  20. When I press Enter, it reacts as if I've pressed the OK button, and
  21. accepts the input, closing the dialog window.
  22. I want it to go down to the next line in the editing field,
  23. just like a word-processor.
  24.  
  25. What I've already tried:
  26. I have the editing field defined as multi-edit in the resource file.
  27. I've tried to 'new' the TEdit field using the first two constructor's
  28. in the manual, and I fiddled with the multi-line toggle in the first
  29. constructor, and it didn't do anything.  I even tried not 'new'ing the
  30. TEdit in my .cpp code, and it still didn't work.
  31.  
  32. My request:
  33. If you have any sample code (.cpp & .rc) that has a multi-line TEdit
  34. in a dialog box, I would be truly grateful if you could Email it to
  35. me.  Thanks ahead of time.
  36.  
  37. My Gripe(s):
  38. 1. Borland support sucks.  Period.  I faxed this problem in to them 9 days
  39. ago, and have heard NADA.  I've phoned in to their "support" line in
  40. the past, in the hopes of talking to a real person.  After 20-30 minutes
  41. of waiting, I finally get somebody who may or may not be able to help.
  42. They don't have a 1-800 number in Canada, and phoning California for
  43. their mediocre service is too much, considering I spend most of the time
  44. waiting.  So I thought that I'd fax them.  Didn't seem to work.
  45.  
  46. 2. I phoned Borland Canada to complain, and all they could tell me is that
  47. if they had a 1-800 number then everybody would use it!  Great service.
  48.  
  49. 3. Unless it's hidden away somewhere, there isn't one single example of
  50. a multi-line TEdit anywhere in Borland's examples.  This isn't a strange
  51. thing to do!
  52.  
  53. -Scott Ambler
  54.