DBMemo and the dead Return key
Posted on 1997-08-18
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
Thanks for your help,
PS This is Delphi 1.0 (Application must run on Win 3.1)