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