Solved

DBMemo and the dead Return key

Posted on 1997-08-18
2
474 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
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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi Form ownership 4 90
how can i search if string exist in array ? 3 59
Dev express lookupcombo 3 29
Slow Restore if incremental backups using RDiff.exe 4 21
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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