Mega Code Archive

 
Categories / Delphi / VCL
 

Memo input and line breaks

Question: How can I prevent Delphi from storing the contents of a Memo input at design time as separate lines in the project/executable? Answer: Set the TMemo's WordWrap property to false in design mode. If you desire word wrap at runtime, set the TMemo's WordWrap property to true during the form's create event