home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- From: chris@chrism.demon.co.uk (Chris Marriott)
- Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
- Subject: Re: Edit window
- Distribution: world
- References: <1993Jan21.133335.13502@cs.hw.ac.uk>
- Organization: None
- Reply-To: chris@chrism.demon.co.uk
- X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
- Lines: 38
- Date: Thu, 21 Jan 1993 19:18:42 +0000
- Message-ID: <727643922snz@chrism.demon.co.uk>
- Sender: usenet@demon.co.uk
-
- In article <1993Jan21.133335.13502@cs.hw.ac.uk> onar@cee.hw.ac.uk writes:
-
- >Hi, hope someone can help a stupid Norwegian!
- >
- >I have a multiline edit window created by WRT resource toolkit.
- >The programming is done in pure C using BorlandC 2.0.
- >I use this edit window in a dialogbox. The problem is that
- >the edit window does not detect the return key, but the
- >strange thing is that if I hold down the CTRL key and then press
- >the return key, the bastard works!
- >What am I doing wrong.
- >
- >
- >Regards
- >
- >Onar
- >
- >E-Mail: onar@cee.hw.ac.uk
- >
-
- you're not doing *anything* wrong - this is the (admitedly strange) way
- that a multi-line edit control is *supposed* to work!
-
- If you're using Windows 3.1 and you want the <Enter> key to start a new
- line in the edit control, you can give the control the ES_WANTRETURN
- style. If you're using Windows 3.0, you have to subclass the control.
-
- Best wishes,
-
- Chris
- --
- --------------------------------------------------------------------------
- | Chris Marriott | chris@chrism.demon.co.uk |
- | Warrington, UK | BIX: cmarriott |
- | | CIX: cmarriott |
- | Save the whales. Collect the whole set. | CompuServe: 100113,1140 |
- --------------------------------------------------------------------------
-
-