TDBEditEh.WantReturns Property

Determines whether the user can insert return characters into the text.

property WantReturns;

Set WantReturns to True to allow users to enter return characters into the text. Set WantReturns to False to allow the form to handle return characters instead. 


For example, in a form with a default button (such as an OK button) and a memo control, if WantReturns is False, pressing Enter chooses the default button. If WantReturns is True, pressing Enter inserts a return character in the text. 


Note: If WantReturns is False, users can still enter return characters into the text by pressing Ctrl+Enter. 

Copyright (c) 1998-2013. All rights reserved.
What do you think about this topic? Send feedback!