?
Solved

DBMemo and the dead Return key

Posted on 1997-08-18
2
Medium Priority
?
493 Views
Last Modified: 2012-05-05
Delphi has been easy for me to learn so far. But I seem to be stuck with what seems to me a very simple problem.  I cannot seem to get a DBMemo control to allow using the Enter key to go to a new line within the memo.  When I hit the enter key I get no response.  I have noticed that when I hit Ctrl+Enter it does got to a new line.  Events OnKeyPress, and OnKeyDown do not capture the Enter key, but OnKeyUp does.  How can I make this work?  If
I capture the Enter key in the OnKeyUp event how would I make it go to a new line?  Is there a property or flag that can be set somewhere that changes this behavior?
  This seems to me like a function that should work without any coding. It lets you do wordwrap by simply setting a property, why is hitting enter to go to a new line so damn hard? I have worked on this for 2 days and have
gotten nowhere.

Thanks for your help,

Frustrated newbie

PS This is Delphi 1.0 (Application must run on Win 3.1)

0
Comment
Question by:lbrowning
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
fsanchez earned 50 total points
ID: 1341795
Try using the property WantReturns. It is published for TMemo, but not fot TDBMemo.
0
 

Author Comment

by:lbrowning
ID: 1341796
I tried using the TMemo setting the WantReturns to true instead of the TDBMemo as you suggested, but it didn't work.  I also have the KeyPreview on the form set on as many others have suggested.  Do you have any other ideas?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month11 days, 5 hours left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question